2.5
authorTon Roosendaal <ton@blender.org>
Sun, 14 Dec 2008 18:04:31 +0000 (18:04 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 14 Dec 2008 18:04:31 +0000 (18:04 +0000)
OSX crashed on double-click the Finder Blender icon

Removed 7 years old hack to get the correct arguments for this case, it
was a terrible hack anyway. Needs proper code.

source/creator/creator.c

index bfc03c976fb6161255458b46f3894e481bd79b61..8cb436f4d6d7a1556cab9c94357b28e5ccf9e117 100644 (file)
@@ -279,13 +279,11 @@ int main(int argc, char **argv)
 #ifdef __APPLE__
                /* patch to ignore argument finder gives us (pid?) */
        if (argc==2 && strncmp(argv[1], "-psn_", 5)==0) {
-               extern void     wm_window_process_events(int wait_for_event);
                extern int GHOST_HACK_getFirstFile(char buf[]);
                static char firstfilebuf[512];
 
                argc= 1;
 
-               wm_window_process_events(0);
                if (GHOST_HACK_getFirstFile(firstfilebuf)) {
                        argc= 2;
                        argv[1]= firstfilebuf;