Add optional debugging for calls to ValueNode_*::operator(). export SYNFIG_DEBUG_VAL...
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_linear.cpp
index 2b7fd35..583612e 100644 (file)
@@ -108,6 +108,9 @@ ValueNode_Linear::~ValueNode_Linear()
 ValueBase
 ValueNode_Linear::operator()(Time t)const
 {
+       if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS"))
+               printf("%s:%d operator()\n", __FILE__, __LINE__);
+
        switch(get_type())
        {
        case ValueBase::TYPE_ANGLE: