Fix: Scaling in Action Window didn't correct for NLA mapped time
authorTon Roosendaal <ton@blender.org>
Mon, 31 Oct 2005 10:53:47 +0000 (10:53 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 31 Oct 2005 10:53:47 +0000 (10:53 +0000)
source/blender/src/editaction.c

index bd50436fff364519eeb27618cf1c646a6779e909..2b76fafdf015b74c449b35347602182d8923cb9e 100644 (file)
@@ -1007,7 +1007,9 @@ void transform_actionchannel_keys(int mode, int dummy)
                                                        fac*=-1;
                                                }
                                                startx= (G.scene->r.cfra);
-                                       
+                                               if(G.saction->pin==0 && OBACT)
+                                                       startx= get_action_frame(OBACT, startx);
+                                                       
                                                tv[i].loc[0]-= startx;
                                                tv[i].loc[0]*=fac;
                                                tv[i].loc[0]+= startx;