Fix for bug #5975:

Clear location and rotation confirmation dialogs were shown in edit mode
but did nothing. These should be disabled in edit mode.
This commit is contained in:
Brecht Van Lommel
2007-02-10 14:38:50 +00:00
parent f26e67e9d6
commit de0e9d8b20

View File

@@ -1732,7 +1732,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
select_mesh_group_menu();
} else
select_object_grouped_menu();
else if(G.qual==LR_ALTKEY) {
else if((G.obedit==0) && G.qual==LR_ALTKEY) {
if(okee("Clear location")) {
clear_object('g');
}
@@ -2039,7 +2039,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
case RKEY:
if((G.obedit==0) && (G.f & G_FACESELECT) && (G.qual==0) && !(G.f & G_WEIGHTPAINT))
rotate_uv_tface();
else if(G.qual==LR_ALTKEY) {
else if((G.obedit==0) && G.qual==LR_ALTKEY) {
if(okee("Clear rotation")) {
clear_object('r');
}