From 18bce23a6052540c2ded4bdc548f83106c71c117 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Mon, 18 Aug 2008 22:22:56 +0000 Subject: Make subgraph tagging use own index, to not interfere with flagging used to prevent backtracking in different other functions Better deal with chains starting with control bones --- source/blender/blenlib/BLI_graph.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_graph.h') diff --git a/source/blender/blenlib/BLI_graph.h b/source/blender/blenlib/BLI_graph.h index 59e73004b8b..0f75701a284 100644 --- a/source/blender/blenlib/BLI_graph.h +++ b/source/blender/blenlib/BLI_graph.h @@ -40,6 +40,8 @@ typedef struct BNode { int degree; struct BArc **arcs; + + int subgraph_index; int symmetry_level; int symmetry_flag; @@ -70,6 +72,8 @@ BNode *BLI_otherNode(BArc *arc, BNode *node); void BLI_freeNode(BGraph *graph, BNode *node); void BLI_removeNode(BGraph *graph, BNode *node); +void BLI_removeArc(BGraph *graph, BArc *arc); + void BLI_flagNodes(BGraph *graph, int flag); void BLI_flagArcs(BGraph *graph, int flag); @@ -84,7 +88,7 @@ void BLI_ReflagSubgraph(BGraph *graph, int old_subgraph, int new_subgraph); #define SHAPE_RADIX 10 /* each shape level is encoded this base */ -int BLI_subtreeShape(BNode *node, BArc *rootArc, int include_root); +int BLI_subtreeShape(BGraph *graph, BNode *node, BArc *rootArc, int include_root); float BLI_subtreeLength(BNode *node); void BLI_calcGraphLength(BGraph *graph); -- cgit v1.2.3