- 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-9d2fd5bffc1fpull/1/head
parent
3d3b9719f8
commit
093fa3377f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue