X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fwaypoint.cpp;h=e716dc3a4d0702c08beec5e4c13019b013abc31b;hb=b56b3e2d45cf281bb0c537f40ab43c908048df01;hp=1befa6f23725e2f86602d08dfebb5c9011dc7bb7;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/waypoint.cpp b/synfig-core/src/synfig/waypoint.cpp index 1befa6f..e716dc3 100644 --- a/synfig-core/src/synfig/waypoint.cpp +++ b/synfig-core/src/synfig/waypoint.cpp @@ -59,6 +59,7 @@ Waypoint::Waypoint(ValueBase value, Time time): bias(0), time_tension(0.0f) { + //!Writeme if(value.get_type()==ValueBase::TYPE_ANGLE) after=before=INTERPOLATION_LINEAR; } @@ -92,6 +93,8 @@ Waypoint::Waypoint(): void Waypoint::set_value(const ValueBase &x) { + //! If the value node is not set and we are seting the value + //! of an angle, then set both interpolation to linear... why? if(!value_node && x.get_type()==ValueBase::TYPE_ANGLE) after=before=INTERPOLATION_LINEAR; @@ -101,6 +104,8 @@ Waypoint::set_value(const ValueBase &x) void Waypoint::set_value_node(const etl::handle &x) { + //! If the value node is not set and we are seting the value + //! of an angle, then set both interpolation to linear... why? if(!value_node && x->get_type()==ValueBase::TYPE_ANGLE) after=before=INTERPOLATION_LINEAR;