diff options
author | Ton Roosendaal <ton@blender.org> | 2004-10-28 20:22:42 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-10-28 20:22:42 +0400 |
commit | 9ac0d58d0e2ba61953778392fa94533d3b63a86e (patch) | |
tree | c42686d6f060ed07397f8053cb509a89a6a7b081 /source/blender/src/editipo.c | |
parent | 9326a6cf51c7b428af286b57671141d50e0ae65a (diff) |
Changed order in evaluation for common_instertkey menu, to enable posemode
key insterting working on unselected armature.
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r-- | source/blender/src/editipo.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index a561dde689a..eb924f0b812 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -3805,18 +3805,19 @@ void common_insertkey() else if(curarea->spacetype==SPACE_VIEW3D) { - base= FIRSTBASE; - while(base) { - if TESTBASELIB(base) break; - base= base->next; + if (G.obpose) { + strcpy(menustr, "Insert Key%t|Loc%x0|Rot%x1|Size%x2|LocRot%x3|LocRotSize%x4|Avail%x9"); } - if(base==0) return; + else { + base= FIRSTBASE; + while(base) { + if TESTBASELIB(base) break; + base= base->next; + } + if(base==0) return; - if (G.obpose) - strcpy(menustr, "Insert Key%t|Loc%x0|Rot%x1|Size%x2|LocRot%x3|LocRotSize%x4|Avail%x9"); - else strcpy(menustr, "Insert Key%t|Loc%x0|Rot%x1|Size%x2|LocRot%x3|LocRotSize%x4|Layer%x5|Avail%x9"); - + } if( (ob = OBACT)) { if(ob->type==OB_MESH) strcat(menustr, "| %x6|Mesh%x7"); |