* Fix: The sculptmode hotkey I to change to Inflate brush wasn't working,
authorMatt Ebb <matt@mke3.net>
Fri, 12 Jan 2007 05:26:17 +0000 (05:26 +0000)
committerMatt Ebb <matt@mke3.net>
Fri, 12 Jan 2007 05:26:17 +0000 (05:26 +0000)
since it was being overridden by blenderqread() in toets.c The existence of
this stuff here alongside the hotkeys in space.c is just plain evil, bring on
the events refactor! :)

source/blender/src/toets.c

index a0b54e54a32f01d7b1637d0ba2553b0f585d9045..355a1535f42dac2242a6241bf76e74cf9f431199 100644 (file)
@@ -713,7 +713,8 @@ int blenderqread(unsigned short event, short val)
                break;
        case IKEY:
                if(textediting==0 && textspace==0 && !ELEM3(curarea->spacetype, SPACE_FILE, SPACE_IMASEL, SPACE_NODE)) {
-                       if(G.qual==0) {
+                       if(G.f & G_SCULPTMODE) return 1;
+                       else if(G.qual==0) {
                                common_insertkey();
                                return 0;
                        }