if(child->get_attribute("temporal-tension"))
{
synfig::String str(child->get_attribute("temporal-tension")->get_value());
- waypoint->set_time_tension(atof(str.c_str()));
+ waypoint->set_temporal_tension(atof(str.c_str()));
}
if(child->get_attribute("continuity"))
{
if(iter->get_tension()!=0.0)
waypoint_node->set_attribute("tension",strprintf("%f",iter->get_tension()));
- if(iter->get_time_tension()!=0.0)
- waypoint_node->set_attribute("temporal-tension",strprintf("%f",iter->get_time_tension()));
+ if(iter->get_temporal_tension()!=0.0)
+ waypoint_node->set_attribute("temporal-tension",strprintf("%f",iter->get_temporal_tension()));
if(iter->get_continuity()!=0.0)
waypoint_node->set_attribute("continuity",strprintf("%f",iter->get_continuity()));
if(iter->get_bias()!=0.0)
curve.first.set_rs(iter->get_time(), next->get_time());
curve.first.p1()=iter->get_time();
curve.first.p2()=next->get_time();
- curve.first.t1()=(curve.first.p2()-curve.first.p1())*(1.0f-iter->get_time_tension());
- curve.first.t2()=(curve.first.p2()-curve.first.p1())*(1.0f-next->get_time_tension());
+ curve.first.t1()=(curve.first.p2()-curve.first.p1())*(1.0f-iter->get_temporal_tension());
+ curve.first.t2()=(curve.first.p2()-curve.first.p1())*(1.0f-next->get_temporal_tension());
curve.first.sync();
bool is_static()const;
- float get_time_tension()const { return time_tension; }
- void set_time_tension(const float& x) { time_tension=x; }
+ float get_temporal_tension()const { return time_tension; }
+ void set_temporal_tension(const float& x) { time_tension=x; }
float get_temporal_tension()const { return time_tension; }
void set_temporal_tension(const float& x) { time_tension=x; }