Finish yesterday's bugfixing.
Making shape function work on cyclic graphs requires tracking the current graph level, which wasn't done correctly when this was implemented. Done properly now so going up and down on graph works as it did before.
This commit is contained in:
@@ -465,6 +465,8 @@ int subtreeShape(BNode *node, BArc *rootArc, int include_root)
|
||||
|
||||
int BLI_subtreeShape(BGraph *graph, BNode *node, BArc *rootArc, int include_root)
|
||||
{
|
||||
BNode *test_node;
|
||||
|
||||
BLI_flagNodes(graph, 0);
|
||||
return subtreeShape(node, rootArc, include_root);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user