Add optional debugging for calls to ValueNode_*::operator(). export SYNFIG_DEBUG_VAL...
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_switch.cpp
index 78fc22d..195bd95 100644 (file)
@@ -154,6 +154,9 @@ ValueNode_Switch::get_link_index_from_name(const String &name)const
 ValueBase
 ValueNode_Switch::operator()(Time t)const
 {
+       if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS"))
+               printf("%s:%d operator()\n", __FILE__, __LINE__);
+
        return (*switch_)(t).get(bool()) ? (*link_on_)(t) : (*link_off_)(t);
 }