closes https://github.com/assimp/assimp/issues/567: prevend dependency cycle
parent
48d41b4bf9
commit
674a47dd3e
|
@ -583,7 +583,7 @@ void ASEImporter::AddNodes (const std::vector<BaseNode*>& nodes,
|
||||||
node->mTransformation = mParentAdjust*snode->mTransform;
|
node->mTransformation = mParentAdjust*snode->mTransform;
|
||||||
|
|
||||||
// Add sub nodes - prevent stack overflow due to recursive parenting
|
// Add sub nodes - prevent stack overflow due to recursive parenting
|
||||||
if (node->mName != node->mParent->mName) {
|
if (node->mName != node->mParent->mName && node->mName != node->mParent->mParent->mName ) {
|
||||||
AddNodes(nodes,node,node->mName.data,snode->mTransform);
|
AddNodes(nodes,node,node->mName.data,snode->mTransform);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue