Tiny fix in UI for editing actions/ipos:
authorTon Roosendaal <ton@blender.org>
Wed, 23 Jan 2008 15:06:44 +0000 (15:06 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 23 Jan 2008 15:06:44 +0000 (15:06 +0000)
Each Ipo block (actions, objects, etc) stores the last view
of the ipo window. Nice for selecting objects/bones and then getting
the previous view back.

When you use option "Lock time to other windows", this option is very
annoying; the action window then shifts all channels around, almost as
if this is a bug.

source/blender/src/editipo.c

index 93ddb57ea66a414c88988350b253e2f8752ba9da..3963103a168515c881935ac1fb4bcd295c9ad509 100644 (file)
@@ -1204,7 +1204,9 @@ void test_editipo(int doit)
                
                if(G.sipo->ipo != ipo) {
                        G.sipo->ipo= ipo;
-                       if(ipo) G.v2d->cur= ipo->cur;
+                       /* if lock we don't copy from ipo, this makes the UI jump around confusingly */
+                       if(G.v2d->flag & V2D_VIEWLOCK);
+                       else if(ipo) G.v2d->cur= ipo->cur;
                        doit= 1;
                }
                if(G.sipo->from != from) {