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.
This commit is contained in:
Ton Roosendaal 2005-09-12 15:17:35 +00:00
parent 17c28a8f93
commit f9acbb7b5d
2 changed files with 5 additions and 4 deletions

@ -904,7 +904,7 @@ void clear_object(char mode)
// no test if we got armature; could be in future... // no test if we got armature; could be in future...
clear_armature(ob, mode); clear_armature(ob, mode);
} }
else { else if((G.f & G_WEIGHTPAINT)==0) {
if(mode=='r') { if(mode=='r') {
memset(ob->rot, 0, 3*sizeof(float)); memset(ob->rot, 0, 3*sizeof(float));
@ -2000,7 +2000,6 @@ void special_editmenu(void)
else BIF_undo_push("Boolean"); else BIF_undo_push("Boolean");
waitcursor(0); waitcursor(0);
} else { } else {
ModifierTypeInfo *mti = modifierType_getInfo(eModifierType_Boolean);
BooleanModifierData *bmd = NULL; BooleanModifierData *bmd = NULL;
bmd = (BooleanModifierData *)modifier_new(eModifierType_Boolean); bmd = (BooleanModifierData *)modifier_new(eModifierType_Boolean);
BLI_addtail(&ob->modifiers, bmd); BLI_addtail(&ob->modifiers, bmd);

@ -1669,10 +1669,12 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
} }
} }
else if(G.qual==LR_CTRLKEY) { else if(G.qual==LR_CTRLKEY) {
make_track(); if(ob && (ob->flag & OB_POSEMODE));
else make_track();
} }
else if(G.qual==LR_ALTKEY) { else if(G.qual==LR_ALTKEY) {
clear_track(); if(ob && (ob->flag & OB_POSEMODE));
else clear_track();
} }
else if((G.qual==0)){ else if((G.qual==0)){
texspace_edit(); texspace_edit();