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-07-08 20:22:18 +0400
committerMartin Poirier <theeth@yahoo.com>2008-07-08 20:22:18 +0400
commitf8afbb40543240ea9e986dfef9ca3917b6e3bd38 (patch)
treeb66cd7dffcea2ace2c7d73a750710eb0814c653f /source/blender/blenlib/intern/graph.c
parent52219d52dd5e4902f38d9be4d07f39e67ba461b2 (diff)
Start multi resolution search on first arc and smarter search (match first two levels only).
Now need a way to go back to lower levels at shared nodes.
Diffstat (limited to 'source/blender/blenlib/intern/graph.c')
-rw-r--r--source/blender/blenlib/intern/graph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/graph.c b/source/blender/blenlib/intern/graph.c
index 2aea9bc0a4a..9bdf286d248 100644
--- a/source/blender/blenlib/intern/graph.c
+++ b/source/blender/blenlib/intern/graph.c
@@ -328,7 +328,7 @@ int BLI_subtreeShape(BNode *node, BArc *rootArc, int include_root)
if (include_root)
{
BNode *newNode = BLI_otherNode(rootArc, node);
- depth = BLI_subtreeShape(newNode, rootArc, 0);
+ return BLI_subtreeShape(newNode, rootArc, 0);
}
else
{
@@ -353,9 +353,9 @@ int BLI_subtreeShape(BNode *node, BArc *rootArc, int include_root)
}
}
}
+
+ return 10 * depth + 1;
}
-
- return 10 * depth + 1;
}
/********************************* SYMMETRY DETECTION **************************************************/