Skip to content

Commit

Permalink
More debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Moore committed Jan 4, 2009
1 parent 2196587 commit 670aecb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synfig-core/trunk/src/synfig/transform.cpp
Expand Up @@ -63,11 +63,11 @@ TransformStack::perform(const synfig::Vector& x)const
{
synfig::Vector ret(x);

if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf("PERFORM: %5.2f %5.2f", ret[0], ret[1]);
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf(" PERFORM %s: %5.2f %5.2f", get_guid().get_string().substr(0,6).c_str(), ret[0], ret[1]);
for(const_reverse_iterator iter(rbegin());iter!=rend();++iter)
{
ret=(*iter)->perform(ret);
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf(" (%s) %5.2f %5.2f", (*iter)->get_string().c_str(), ret[0], ret[1]);
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf(" (%14s) %5.2f %5.2f", (*iter)->get_string().c_str(), ret[0], ret[1]);
}
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf("\n");

Expand All @@ -79,11 +79,11 @@ TransformStack::unperform(const synfig::Vector& x)const
{
synfig::Vector ret(x);

if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf("UNPERFORM: %5.2f %5.2f", ret[0], ret[1]);
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf(" UNPERFORM %s: %5.2f %5.2f", get_guid().get_string().substr(0,6).c_str(), ret[0], ret[1]);
for(const_iterator iter(begin());iter!=end();++iter)
{
ret=(*iter)->unperform(ret);
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf(" (%s) %5.2f %5.2f", (*iter)->get_string().c_str(), ret[0], ret[1]);
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf(" (%14s) %5.2f %5.2f", (*iter)->get_string().c_str(), ret[0], ret[1]);
}
if (getenv("SYNFIG_DEBUG_TRANSFORM_STACK")) printf("\n");

Expand Down

0 comments on commit 670aecb

Please sign in to comment.