Open in new Blender: pass all --enable-xxx CLI options to sub-blender.

This commit is contained in:
Sybren A. Stüvel 2016-10-13 10:05:58 +02:00
parent 74f61fa83a
commit 5117ec7cde

View File

@ -457,8 +457,7 @@ class ATTRACT_OT_open_meta_blendfile(AttractOperatorMixin, Operator):
str(fname),
]
if '--enable-new-depsgraph' in sys.argv:
cmd[1:1] = ['--enable-new-depsgraph']
cmd[1:1] = [v for v in sys.argv if v.startswith('--enable-')]
if scene:
cmd.extend(['--scene', scene])