Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-01-23 18:06:44 +0300
committerTon Roosendaal <ton@blender.org>2008-01-23 18:06:44 +0300
commit14d79c5ce70d2200086f34b215c1dbce2a3f18d8 (patch)
tree5f1dd111e360326a667d95459c1eccad5fee79b0 /source/blender/src/editipo.c
parent3e81d4723c743afec736ee689e5d0f10afe1aa09 (diff)
Tiny fix in UI for editing actions/ipos:
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.
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r--source/blender/src/editipo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c
index 93ddb57ea66..3963103a168 100644
--- a/source/blender/src/editipo.c
+++ b/source/blender/src/editipo.c
@@ -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) {