2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:44:56 +00:00

blendershell.py updates

This commit is contained in:
Jack Andersen
2015-08-06 09:10:12 -10:00
parent 23bc65c4b9
commit 669c598f4b
7 changed files with 10 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ public:
static inline BlenderConnection& SharedConnection()
{
if (!SharedBlenderConnection)
SharedBlenderConnection = new BlenderConnection();
SharedBlenderConnection = new BlenderConnection(HECL::VerbosityLevel?false:true);
return *SharedBlenderConnection;
}

View File

@@ -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:]

View File

@@ -33,7 +33,10 @@ protected:
bool m_good = false;
public:
ToolBase(const ToolPassInfo& info)
: m_info(info) {}
: m_info(info)
{
HECL::VerbosityLevel = info.verbosityLevel;
}
virtual ~ToolBase() {}
virtual HECL::SystemString toolName() const=0;
virtual int run()=0;

Submodule hecl/extern/RetroCommon updated: aeb6089053...592c4484e7

View File

@@ -35,6 +35,7 @@
namespace HECL
{
extern unsigned VerbosityLevel;
extern LogVisor::LogModule LogModule;
#if _WIN32 && UNICODE

View File

@@ -2,6 +2,7 @@
namespace HECL
{
unsigned VerbosityLevel = 0;
LogVisor::LogModule LogModule("HECL");
void SanitizePath(std::string& path)