bool
Action::WaypointSetSmart::is_candidate(const ParamList &x)
{
- if(candidate_check(get_param_vocab(),x))
- {
- if(!ValueNode_Animated::Handle::cast_dynamic(x.find("value_node")->second.get_value_node()))
- return false;
- // We need either a waypoint or a time.
- if(x.count("waypoint") || x.count("time"))
- return true;
- return false;
- }
- return false;
+ return (candidate_check(get_param_vocab(),x) &&
+ // We need an animated valuenode.
+ ValueNode_Animated::Handle::cast_dynamic(x.find("value_node")->second.get_value_node()) &&
+ // We need either a waypoint or a time.
+ (x.count("waypoint") || x.count("time")));
}
bool
// synfig::info(__FILE__":%d: value_node->find(waypoint)->get_time()=%s",__LINE__,value_node->find(waypoint)->get_time().get_string().c_str());
}catch (...) { }
- // First we need to to add any waypoints necessary to
+ // First we need to add any waypoints necessary to
// maintain the integrity of the keyframes.
if(get_edit_mode()&MODE_ANIMATE_PAST) try
{
clear();
times.clear();
- // First we need to to add any waypoints necessary to
+ // First we need to add any waypoints necessary to
// maintain the integrity of the keyframes.
enclose_waypoint(waypoint);
try
{
//synfig::info("WaypointSetSmart: Move/Update?");
- // Lets try to replace the old waypoint, if it exists
+ // Let's try to replace the old waypoint, if it exists
WaypointList::iterator iter(value_node->find(waypoint));
if(iter == value_node->waypoint_list().end())