Meshes no longer retains an animation pointer

Former-commit-id: da4d93b815c46284a8977d7fb142201dc23fff61
This commit is contained in:
Lynix
2012-11-27 23:33:11 +01:00
parent c019d02b91
commit 2e26d52248
4 changed files with 165 additions and 21 deletions

View File

@@ -314,6 +314,16 @@ bool NzMD5MeshParser::Parse(NzMesh* mesh)
}
subMesh.release();
// Animation
// Il est peut-être éventuellement possible que la probabilité que l'animation ait le même nom soit non-nulle.
NzString path = m_stream.GetPath();
if (!path.IsEmpty())
{
path.Replace(".md5mesh", ".md5anim", -8, NzString::CaseInsensitive);
if (NzFile::Exists(path))
mesh->SetAnimation(path);
}
}
}
else