2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 04:27:42 +00:00

Patching and lightmap updates

This commit is contained in:
Jack Andersen
2015-09-17 09:50:01 -10:00
parent 432924ccd5
commit 009545d716
5 changed files with 62 additions and 28 deletions

View File

@@ -34,9 +34,11 @@ def quitblender():
bpy.ops.wm.quit_blender()
# If there's a third argument, use it as the .zip path containing the addon
if len(args) >= 3:
did_install = False
if len(args) >= 3 and args[2] != 'SKIPINSTALL':
bpy.ops.wm.addon_install(overwrite=True, target='DEFAULT', filepath=args[2])
bpy.ops.wm.addon_refresh()
did_install = True
# Make addon available to commands
if bpy.context.user_preferences.addons.find('hecl') == -1:
@@ -51,6 +53,11 @@ except:
writepipeline(b'NOADDON')
bpy.ops.wm.quit_blender()
# Quit if just installed
if did_install:
writepipeline(b'ADDONINSTALLED')
bpy.ops.wm.quit_blender()
# Intro handshake
writepipeline(b'READY')
ackbytes = readpipeline()