** $Id: keyframeremove.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
**
** \legal
-** Copyright (c) 2002 Robert B. Quattlebaum Jr.
+** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
-** This software and associated documentation
-** are CONFIDENTIAL and PROPRIETARY property of
-** the above-mentioned copyright holder.
+** This package is free software; you can redistribute it and/or
+** modify it under the terms of the GNU General Public License as
+** published by the Free Software Foundation; either version 2 of
+** the License, or (at your option) any later version.
**
-** You may not copy, print, publish, or in any
-** other way distribute this software without
-** a prior written agreement with
-** the copyright holder.
+** This package is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+** General Public License for more details.
** \endlegal
*/
/* ========================================================================= */
// 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());