Module: synfig
Branch: zelgadis_master
Commit: ccdb7642df27ee84d641dc7c8a63f5fffbce2665
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=ccdb7642df27ee84d641dc7c8a63f5fffbce2665

Author: Carlos Lopez <car...@pcnuevo.(none)>
Date:   Wed Jul 22 17:47:39 2009 +0200

Fix bug for the modification of the keyframe length.
Now, modify the keyframe length column, shifts the rest
of keyframes form the modified keyframe to the end of time.

---

 .../src/synfigapp/actions/keyframesetdelta.cpp     |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp 
b/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp
index 97898c3..6cd262a 100644
--- a/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp
+++ b/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp
@@ -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);
 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to