X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_bline.cpp;h=fc3e9165aa20d711f580683a454ad619e733ac12;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=55b19bbcf19f2f0b6814ca560248b1e1a791e917;hpb=1fa460ffee65518b7fce0053616798fb0070deba;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_bline.cpp b/synfig-core/trunk/src/synfig/valuenode_bline.cpp index 55b19bb..fc3e916 100644 --- a/synfig-core/trunk/src/synfig/valuenode_bline.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_bline.cpp @@ -277,7 +277,7 @@ synfig::find_closest_point(const ValueBase &bline, const Point &pos, Real &radiu Real amount = (best_index + best_time + loop_adjust) / (size + loop_adjust); return amount; } - + return 0.0; } @@ -445,9 +445,14 @@ ValueNode_BLine::create_list_entry(int index, Time time, Real origin) return ret; } +static int instance_count; + ValueBase ValueNode_BLine::operator()(Time t)const { + if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS")) + printf("%s:%d operator()\n", __FILE__, __LINE__); + std::vector ret_list; std::vector::const_iterator iter,first_iter;