- bug fix: for OSX using ctrl or alt + f12 didn't render anymore. this is
authorTon Roosendaal <ton@blender.org>
Mon, 1 Dec 2003 11:58:11 +0000 (11:58 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 1 Dec 2003 11:58:11 +0000 (11:58 +0000)
  because some macs eject a cdrom then... ahem!

source/blender/src/toets.c

index 273537abc974449c05a5274286e0224d0f2b8b16..cf68fbe25ebe3df716b401bb1dc9a913fbaa557d 100644 (file)
@@ -561,7 +561,8 @@ int blenderqread(unsigned short event, short val)
                        BIF_save_rendered_image();
                        return 0;
                }
                        BIF_save_rendered_image();
                        return 0;
                }
-               else if((G.qual==LR_CTRLKEY)||(G.qual==(LR_CTRLKEY|LR_SHIFTKEY))) {
+               else if(G.qual & LR_CTRLKEY) {
+                       /* all alt+ctrl+shift combos are needed here... */
                        BIF_screendump();
                }
                break;
                        BIF_screendump();
                }
                break;
@@ -652,7 +653,8 @@ int blenderqread(unsigned short event, short val)
                        newspace(curarea, SPACE_NLA);
                        return 0;
                }
                        newspace(curarea, SPACE_NLA);
                        return 0;
                }
-               else if(G.qual==0) {
+               else {
+                       /* ctrl/alt + f12 should render too, for some macs have f12 assigned to cd eject */
                        BIF_do_render(0);
                }
                return 0;
                        BIF_do_render(0);
                }
                return 0;