2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-05 19:55:51 +00:00

Blendershell exception fix

This commit is contained in:
Jack Andersen 2016-04-03 20:25:41 -10:00
parent 124b5e5f3a
commit 8611c85791

View File

@ -199,6 +199,7 @@ while True:
elif cmdargs[0] == 'OPEN':
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')
writepipeline(b'FINISHED')
else: