Skip to content

Commit

Permalink
Debugging code for bone refcounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Moore committed Jan 4, 2009
1 parent cc3e2b7 commit 44573f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions synfig-core/trunk/src/synfig/valuenode_staticlist.cpp
Expand Up @@ -127,11 +127,23 @@ ValueNode_StaticList::add(const ValueNode::Handle &value_node, int index) // lin
{
if(index<0 || index>=(int)list.size())
{
if (getenv("SYNFIG_DEBUG_BONE_REFCOUNT"))
printf("%s:%d vvv adding valuenode to end of static list\n", __FILE__, __LINE__);

list.push_back(value_node);

if (getenv("SYNFIG_DEBUG_BONE_REFCOUNT"))
printf("%s:%d ^^^ done adding valuenode\n", __FILE__, __LINE__);
}
else
{
if (getenv("SYNFIG_DEBUG_BONE_REFCOUNT"))
printf("%s:%d vvv inserting valuenode into static list at %d\n", __FILE__, __LINE__, index);

list.insert(list.begin()+index,value_node);

if (getenv("SYNFIG_DEBUG_BONE_REFCOUNT"))
printf("%s:%d ^^^ done inserting valuenode\n", __FILE__, __LINE__);
}

add_child(value_node.get());
Expand Down

0 comments on commit 44573f7

Please sign in to comment.