mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 14:24:56 +00:00
blendershell.py updates
This commit is contained in:
@@ -197,7 +197,7 @@ BlenderConnection::BlenderConnection(bool silenceBlender)
|
||||
}
|
||||
|
||||
wchar_t cmdLine[2048];
|
||||
_snwprintf(cmdLine, 2048, L" --background -P shellscript.py -- %08X %08X",
|
||||
_snwprintf(cmdLine, 2048, L" --background -P shellscript.py -- %08X %08X",
|
||||
(uint32_t)m_writepipe[0], (uint32_t)m_readpipe[1]);
|
||||
|
||||
STARTUPINFO sinfo = {sizeof(STARTUPINFO)};
|
||||
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
static inline BlenderConnection& SharedConnection()
|
||||
{
|
||||
if (!SharedBlenderConnection)
|
||||
SharedBlenderConnection = new BlenderConnection();
|
||||
SharedBlenderConnection = new BlenderConnection(HECL::VerbosityLevel?false:true);
|
||||
return *SharedBlenderConnection;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import bpy, sys, os, re
|
||||
ARGS_PATTERN = re.compile(r'''(?:"([^"]+)"|'([^']+)'|(\S+))''')
|
||||
|
||||
# Extract pipe file descriptors from arguments
|
||||
print(sys.argv)
|
||||
print('HECL Blender Launch', sys.argv)
|
||||
if '--' not in sys.argv:
|
||||
bpy.ops.wm.quit_blender()
|
||||
args = sys.argv[sys.argv.index('--')+1:]
|
||||
|
||||
Reference in New Issue
Block a user