mirror of https://github.com/AxioDL/metaforce.git
Blendershell exception fix
This commit is contained in:
parent
124b5e5f3a
commit
8611c85791
|
@ -199,6 +199,7 @@ while True:
|
||||||
|
|
||||||
elif cmdargs[0] == 'OPEN':
|
elif cmdargs[0] == 'OPEN':
|
||||||
if 'FINISHED' in bpy.ops.wm.open_mainfile(filepath=cmdargs[1]):
|
if 'FINISHED' in bpy.ops.wm.open_mainfile(filepath=cmdargs[1]):
|
||||||
|
if bpy.ops.object.mode_set.poll():
|
||||||
bpy.ops.object.mode_set(mode = 'OBJECT')
|
bpy.ops.object.mode_set(mode = 'OBJECT')
|
||||||
writepipeline(b'FINISHED')
|
writepipeline(b'FINISHED')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue