Add optional debugging for calls to ValueNode_*::operator(). export SYNFIG_DEBUG_VAL...
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_anglestring.cpp
index d0da88a..978b8b8 100644 (file)
@@ -89,6 +89,9 @@ ValueNode_AngleString::~ValueNode_AngleString()
 ValueBase
 ValueNode_AngleString::operator()(Time t)const
 {
+       if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS"))
+               printf("%s:%d operator()\n", __FILE__, __LINE__);
+
        Real angle(Angle::deg((*angle_)(t).get(Angle())).get());
        int width((*width_)(t).get(int()));
        int precision((*precision_)(t).get(int()));