X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_blinecalctangent.cpp;h=3a3c2cc209797ddde008cc78e3d6d5d287b80b1b;hb=ecff046513a5c0bd64db58b69fdd2fb42736bca7;hp=8fa0212a1ba054af049b5adf5fd1666919a68949;hpb=b054a4463e94169b6d119191000b8485cf7fa853;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_blinecalctangent.cpp b/synfig-core/trunk/src/synfig/valuenode_blinecalctangent.cpp index 8fa0212..3a3c2cc 100644 --- a/synfig-core/trunk/src/synfig/valuenode_blinecalctangent.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_blinecalctangent.cpp @@ -88,14 +88,16 @@ ValueNode_BLineCalcTangent::~ValueNode_BLineCalcTangent() } ValueBase -ValueNode_BLineCalcTangent::operator()(Time t)const +ValueNode_BLineCalcTangent::operator()(Time t, Real amount)const { - const std::vector bline((*bline_)(t)); + if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS")) + printf("%s:%d operator()\n", __FILE__, __LINE__); + + const std::vector bline((*bline_)(t).get_list()); handle bline_value_node(bline_); const bool looped(bline_value_node->get_loop()); int size = bline.size(), from_vertex; bool loop((*loop_)(t).get(bool())); - Real amount((*amount_)(t).get(Real())); Angle offset((*offset_)(t).get(Angle())); Real scale((*scale_)(t).get(Real())); bool fixed_length((*fixed_length_)(t).get(bool())); @@ -154,6 +156,13 @@ ValueNode_BLineCalcTangent::operator()(Time t)const } } +ValueBase +ValueNode_BLineCalcTangent::operator()(Time t)const +{ + Real amount((*amount_)(t).get(Real())); + return (*this)(t, amount); +} + String ValueNode_BLineCalcTangent::get_name()const {