Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / keyframesetdelta.cpp
index 0af76d4..6cd262a 100644 (file)
@@ -49,7 +49,7 @@ using namespace Action;
 /* === 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);
@@ -153,7 +153,7 @@ Action::KeyframeSetDelta::prepare()
                                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());
@@ -178,7 +178,10 @@ Action::KeyframeSetDelta::perform()
 
 //     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);