From 066b0b1c7df65291b33467f7af0cfe9cb1d0641c Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 24 Oct 2005 19:22:04 +0000 Subject: [PATCH] Bugfix #3210 Included a patch by Pablo Marrol! selecting with ALT+CTRL combos didnt check if there was actually a Mesh in editmode. --- source/blender/src/space.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 17722bb090e..06445e028a1 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -939,9 +939,9 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) else if(G.obedit->type==OB_ARMATURE) mouse_armature(); } - else if((G.obedit) && (G.qual == (LR_CTRLKEY|LR_ALTKEY))) + else if((G.obedit && G.obedit->type==OB_MESH) && (G.qual == (LR_CTRLKEY|LR_ALTKEY))) mouse_mesh(); // loop select for 1 mousebutton dudes - else if((G.obedit) && (G.qual == (LR_CTRLKEY|LR_ALTKEY|LR_SHIFTKEY))) + else if((G.obedit && G.obedit->type==OB_MESH) && (G.qual == (LR_CTRLKEY|LR_ALTKEY|LR_SHIFTKEY))) mouse_mesh(); // loop select for 1 mousebutton dudes else if(G.qual==LR_CTRLKEY) mouse_select(); // also allow in editmode, for vertex parenting