2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-17 17:11:20 +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() static inline BlenderConnection& SharedConnection()
{ {
if (!SharedBlenderConnection) if (!SharedBlenderConnection)
SharedBlenderConnection = new BlenderConnection(); SharedBlenderConnection = new BlenderConnection(HECL::VerbosityLevel?false:true);
return *SharedBlenderConnection; return *SharedBlenderConnection;
} }

View File

@ -3,7 +3,7 @@ import bpy, sys, os, re
ARGS_PATTERN = re.compile(r'''(?:"([^"]+)"|'([^']+)'|(\S+))''') ARGS_PATTERN = re.compile(r'''(?:"([^"]+)"|'([^']+)'|(\S+))''')
# Extract pipe file descriptors from arguments # Extract pipe file descriptors from arguments
print(sys.argv) print('HECL Blender Launch', sys.argv)
if '--' not in sys.argv: if '--' not in sys.argv:
bpy.ops.wm.quit_blender() bpy.ops.wm.quit_blender()
args = sys.argv[sys.argv.index('--')+1:] args = sys.argv[sys.argv.index('--')+1:]

View File

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

@ -1 +1 @@
Subproject commit aeb6089053a46c51b55727e68406bb7577c2e60e Subproject commit 592c4484e705cf58d15d0b62931df6845b1fcc86

View File

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

View File

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