From f9acbb7b5de8afa05a43d3fa8196dfe6e07c798e Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 12 Sep 2005 15:17:35 +0000 Subject: [PATCH] Small fixes; - "make track" in posemode only worked for objects, so disabled it for now - in weightpaint, "Clear rotation/location" worked on armature-pose, as well as on object. Was confusing... disabled clearing object in weightpaint. --- source/blender/src/editobject.c | 3 +-- source/blender/src/space.c | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 6ab702a41d4..dd58af0e88f 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -904,7 +904,7 @@ void clear_object(char mode) // no test if we got armature; could be in future... clear_armature(ob, mode); } - else { + else if((G.f & G_WEIGHTPAINT)==0) { if(mode=='r') { memset(ob->rot, 0, 3*sizeof(float)); @@ -2000,7 +2000,6 @@ void special_editmenu(void) else BIF_undo_push("Boolean"); waitcursor(0); } else { - ModifierTypeInfo *mti = modifierType_getInfo(eModifierType_Boolean); BooleanModifierData *bmd = NULL; bmd = (BooleanModifierData *)modifier_new(eModifierType_Boolean); BLI_addtail(&ob->modifiers, bmd); diff --git a/source/blender/src/space.c b/source/blender/src/space.c index fabcadac585..ba85649a42e 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -1669,10 +1669,12 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) } } else if(G.qual==LR_CTRLKEY) { - make_track(); + if(ob && (ob->flag & OB_POSEMODE)); + else make_track(); } else if(G.qual==LR_ALTKEY) { - clear_track(); + if(ob && (ob->flag & OB_POSEMODE)); + else clear_track(); } else if((G.qual==0)){ texspace_edit();