Bug #2497
authorTon Roosendaal <ton@blender.org>
Sat, 30 Apr 2005 11:29:05 +0000 (11:29 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 30 Apr 2005 11:29:05 +0000 (11:29 +0000)
The CTRL+LeftMouse Lasso option was accidentally also invoked in Image
Window. Wasn't supposed to work anywhere but in 3d window.

source/blender/src/editview.c

index 35642e8f25b861aa37cd380089b0df3c176ffd8a..c585208e18f8579cc67124d2ca1c702a790cd7fd 100644 (file)
@@ -631,11 +631,13 @@ int gesture(void)
        else mousebut = L_MOUSE;
        
        if(G.qual & LR_CTRLKEY) {
-               if(G.obedit==NULL) {
-                       if(G.f & (G_VERTEXPAINT|G_TEXTUREPAINT|G_WEIGHTPAINT)) return 0;
-                       if(G.obpose) return 0;
+               if(curarea->spacetype==SPACE_VIEW3D) {
+                       if(G.obedit==NULL) {
+                               if(G.f & (G_VERTEXPAINT|G_TEXTUREPAINT|G_WEIGHTPAINT)) return 0;
+                               if(G.obpose) return 0;
+                       }
+                       lasso= 1;
                }
-               lasso= 1;
        }
        
        glDrawBuffer(GL_FRONT);