Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2008-08-21 21:28:58 +0400
committerMartin Poirier <theeth@yahoo.com>2008-08-21 21:28:58 +0400
commit963031c99f9d5d50438add1e30804d422def93f8 (patch)
tree99596475a0eb5a2c4b690dee2f8ab0ecde8ba82f /source/blender/blenlib/intern/graph.c
parente04b899e81ee25ef4d2a74bf68fcc3d947f53c1c (diff)
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.
Diffstat (limited to 'source/blender/blenlib/intern/graph.c')
-rw-r--r--source/blender/blenlib/intern/graph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/graph.c b/source/blender/blenlib/intern/graph.c
index 81e7c81b904..29c51e05bd7 100644
--- a/source/blender/blenlib/intern/graph.c
+++ b/source/blender/blenlib/intern/graph.c
@@ -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);
}