/* === M A C R O S ========================================================= */
ACTION_INIT(Action::KeyframeSetDelta);
-ACTION_SET_NAME(Action::KeyframeSetDelta,"keyframe_set_delta");
+ACTION_SET_NAME(Action::KeyframeSetDelta,"KeyframeSetDelta");
ACTION_SET_LOCAL_NAME(Action::KeyframeSetDelta,N_("Set Keyframe Delta"));
ACTION_SET_TASK(Action::KeyframeSetDelta,"set");
ACTION_SET_CATEGORY(Action::KeyframeSetDelta,Action::CATEGORY_KEYFRAME|Action::CATEGORY_HIDDEN);
continue;
}
}
- Action::Handle action(Action::create("waypoint_set_smart"));
+ Action::Handle action(Action::create("WaypointSetSmart"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
// Time location(keyframe.get_time());
Time location(get_canvas()->keyframe_list().find(keyframe)->get_time());
- Time delta(delta);
+// This line sets delta to 0s regardless to any previous value of delta.
+// I think it was here for symmetry to the undo() operation.
+// It was causing that the Set delta operation was faulty. Now works!
+// Time delta(delta);
get_canvas()->keyframe_list().insert_time(location,delta);