// If we are a dynamic list, then we need to update the ActivePoints
if(ValueNode_DynamicList::Handle::cast_dynamic(value_node))
{
- ValueNode_DynamicList::Handle value_node(ValueNode_DynamicList::Handle::cast_dynamic(value_node));
+ ValueNode_DynamicList::Handle value_node_dynamic(ValueNode_DynamicList::Handle::cast_dynamic(value_node));
int i;
- for(i=0;i<value_node->link_count();i++)
+ for(i=0;i<value_node_dynamic->link_count();i++)
{
- synfigapp::ValueDesc value_desc(value_node,i);
- Activepoint activepoint(value_node->list[i].new_activepoint_at_time(old_time));
+ synfigapp::ValueDesc value_desc(value_node_dynamic,i);
+ Activepoint activepoint(value_node_dynamic->list[i].new_activepoint_at_time(old_time));
activepoint.set_time(new_time);
Action::Handle action(ActivepointSetSmart::create());
}
else if(ValueNode_Animated::Handle::cast_dynamic(value_node))
{
- ValueNode_Animated::Handle value_node(ValueNode_Animated::Handle::cast_dynamic(value_node));
- Waypoint waypoint(value_node->new_waypoint_at_time(old_time));
+ ValueNode_Animated::Handle value_node_animated(ValueNode_Animated::Handle::cast_dynamic(value_node));
+ Waypoint waypoint(value_node_animated->new_waypoint_at_time(old_time));
waypoint.set_time(new_time);
Action::Handle action(WaypointSetSmart::create());
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
- action->set_param("value_node",ValueNode::Handle(value_node));
+ action->set_param("value_node",ValueNode::Handle(value_node_animated));
action->set_param("waypoint",waypoint);
assert(action->is_ready());
// If we are a dynamic list, then we need to update the ActivePoints
if(ValueNode_DynamicList::Handle::cast_dynamic(value_node))
{
- ValueNode_DynamicList::Handle value_node(ValueNode_DynamicList::Handle::cast_dynamic(value_node));
+ ValueNode_DynamicList::Handle value_node_dynamic(ValueNode_DynamicList::Handle::cast_dynamic(value_node));
int i;
- for(i=0;i<value_node->link_count();i++)
+ for(i=0;i<value_node_dynamic->link_count();i++)
try
{
Activepoint activepoint;
- activepoint=*value_node->list[i].find(time);
+ activepoint=*value_node_dynamic->list[i].find(time);
- synfigapp::ValueDesc value_desc(value_node,i);
+ synfigapp::ValueDesc value_desc(value_node_dynamic,i);
Action::Handle action(ActivepointRemove::create());
else if(ValueNode_Animated::Handle::cast_dynamic(value_node))
try
{
- ValueNode_Animated::Handle value_node(ValueNode_Animated::Handle::cast_dynamic(value_node));
+ ValueNode_Animated::Handle value_node_animated(ValueNode_Animated::Handle::cast_dynamic(value_node));
Waypoint waypoint;
- waypoint=*value_node->find(time);
+ waypoint=*value_node_animated->find(time);
assert(waypoint.get_time()==time);
Action::Handle action(WaypointRemove::create());
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
- action->set_param("value_node",ValueNode::Handle(value_node));
+ action->set_param("value_node",ValueNode::Handle(value_node_animated));
action->set_param("waypoint",waypoint);
assert(action->is_ready());
// If we are a dynamic list, then we need to update the ActivePoints
if(ValueNode_DynamicList::Handle::cast_dynamic(value_node))
{
- ValueNode_DynamicList::Handle value_node(ValueNode_DynamicList::Handle::cast_dynamic(value_node));
+ ValueNode_DynamicList::Handle value_node_dynamic(ValueNode_DynamicList::Handle::cast_dynamic(value_node));
int i;
- for(i=0;i<value_node->link_count();i++)
+ for(i=0;i<value_node_dynamic->link_count();i++)
{
- synfigapp::ValueDesc value_desc(value_node,i);
+ synfigapp::ValueDesc value_desc(value_node_dynamic,i);
if(new_time>keyframe_prev && new_time<keyframe_next)
{
// In this circumstance, we need to adjust any
Activepoint activepoint;
try
{
- activepoint=*value_node->list[i].find(old_time);
+ activepoint=*value_node_dynamic->list[i].find(old_time);
activepoint.set_time(new_time);
}
catch(...)
{
activepoint.set_time(new_time);
- activepoint.set_state(value_node->list[i].status_at_time(old_time));
+ activepoint.set_state(value_node_dynamic->list[i].status_at_time(old_time));
activepoint.set_priority(0);
}
action->set_param("activepoint",activepoint);
}
//else
{
- ValueNode_Animated::Handle value_node(ValueNode_Animated::Handle::cast_dynamic(value_node));
+ ValueNode_Animated::Handle value_node_animated(ValueNode_Animated::Handle::cast_dynamic(value_node));
Action::Handle action(WaypointSetSmart::create());
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
- action->set_param("value_node",ValueNode::Handle(value_node));
+ action->set_param("value_node",ValueNode::Handle(value_node_animated));
Waypoint waypoint;
try
{
- waypoint=*value_node->find(old_time);
+ waypoint=*value_node_animated->find(old_time);
waypoint.set_time(new_time);
}
catch(...)
{
waypoint.set_time(new_time);
- waypoint.set_value((*value_node)(old_time));
+ waypoint.set_value((*value_node_animated)(old_time));
}
action->set_param("waypoint",waypoint);
ret++;
}
// Process the linkable ValueNode's children
- LinkableValueNode::Handle value_node(LinkableValueNode::Handle::cast_dynamic(value_node));
+ LinkableValueNode::Handle value_node_copy(LinkableValueNode::Handle::cast_dynamic(value_node));
int i;
- for(i=0;i<value_node->link_count();i++)
+ for(i=0;i<value_node_copy->link_count();i++)
{
- ValueNode::Handle link(value_node->get_link(i));
+ ValueNode::Handle link(value_node_copy->get_link(i));
if(!link->is_exported())
- ret+=_process_value_desc(ValueDesc(value_node,i),out,guid_set);
+ ret+=_process_value_desc(ValueDesc(value_node_copy,i),out,guid_set);
}
}
else if(ValueNode_Animated::Handle::cast_dynamic(value_node))