- Bugfix: SkeletonMeshBuilder does not create invalid faces anymore for child nodes at local position (0, 0, 0)

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@198 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
ulfjorensen 2008-10-27 20:27:05 +00:00
parent 3d3b9719f8
commit 093fa3377f
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ void SkeletonMeshBuilder::CreateGeometry( const aiNode* pNode)
const aiMatrix4x4& childTransform = pNode->mChildren[a]->mTransformation;
aiVector3D childpos( childTransform.a4, childTransform.b4, childTransform.c4);
float distanceToChild = childpos.Length();
if( distanceToChild < 0.0001f)
continue;
aiVector3D up = aiVector3D( childpos).Normalize();
aiVector3D orth( 1.0f, 0.0f, 0.0f);