projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation for Waypoint class
[synfig.git]
/
synfig-core
/
src
/
synfig
/
waypoint.cpp
diff --git
a/synfig-core/src/synfig/waypoint.cpp
b/synfig-core/src/synfig/waypoint.cpp
index
1befa6f
..
e716dc3
100644
(file)
--- 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)
{
bias(0),
time_tension(0.0f)
{
+ //!Writeme
if(value.get_type()==ValueBase::TYPE_ANGLE)
after=before=INTERPOLATION_LINEAR;
}
if(value.get_type()==ValueBase::TYPE_ANGLE)
after=before=INTERPOLATION_LINEAR;
}
@@
-92,6
+93,8
@@
Waypoint::Waypoint():
void
Waypoint::set_value(const ValueBase &x)
{
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;
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<ValueNode> &x)
{
void
Waypoint::set_value_node(const etl::handle<ValueNode> &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;
if(!value_node && x->get_type()==ValueBase::TYPE_ANGLE)
after=before=INTERPOLATION_LINEAR;