forked from bartvdbraak/blender
- another hack!
well... probably OK, got it from a python mailing list. When starting from commandline, the window doesnt pop to the front. this was really bad for the play function in blender, which opens a new blender thread. solved with SetFrontProcess()
This commit is contained in:
parent
4cd72d69c1
commit
0ff0ac9b87
@ -41,7 +41,7 @@ TESTDIRS = test
|
||||
|
||||
include nan_subdirs.mk
|
||||
|
||||
install: all debug
|
||||
install: all
|
||||
@[ -d $(NAN_GHOST) ] || mkdir $(NAN_GHOST)
|
||||
@[ -d $(NAN_GHOST)/include ] || mkdir $(NAN_GHOST)/include
|
||||
@[ -d $(NAN_GHOST)/lib ] || mkdir $(NAN_GHOST)/lib
|
||||
|
@ -42,7 +42,6 @@
|
||||
#endif
|
||||
|
||||
#include "GHOST_WindowCarbon.h"
|
||||
|
||||
#include "GHOST_Debug.h"
|
||||
|
||||
AGLContext GHOST_WindowCarbon::s_firstaglCtx = NULL;
|
||||
@ -108,7 +107,13 @@ GHOST_WindowCarbon::GHOST_WindowCarbon(
|
||||
updateDrawingContext();
|
||||
activateDrawingContext();
|
||||
}
|
||||
if(ugly_hack==NULL) ugly_hack= m_windowRef;
|
||||
if(ugly_hack==NULL) {
|
||||
ugly_hack= m_windowRef;
|
||||
// when started from commandline, window remains in the back... also for play anim
|
||||
ProcessSerialNumber psn;
|
||||
GetCurrentProcess(&psn);
|
||||
SetFrontProcess(&psn);
|
||||
}
|
||||
}
|
||||
else {
|
||||
/*
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include "STR_String.h"
|
||||
|
||||
#include <Carbon/Carbon.h>
|
||||
|
||||
#include <AGL/agl.h>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user