Skip to content

Commit

Permalink
closes #567: prevend dependency cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Feb 8, 2018
1 parent 48d41b4 commit 674a47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ASELoader.cpp
Expand Up @@ -583,7 +583,7 @@ void ASEImporter::AddNodes (const std::vector<BaseNode*>& nodes,
node->mTransformation = mParentAdjust*snode->mTransform;

// 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);
}

Expand Down

0 comments on commit 674a47d

Please sign in to comment.