mirror of
https://gitlab.com/ProcyonLotor/vrchat-template.git
synced 2026-08-25 10:43:53 +05:00
Even more future-proof implementation
This commit is contained in:
Binary file not shown.
@@ -125,6 +125,10 @@ def fbx_export(context: Context) -> None:
|
||||
}
|
||||
)
|
||||
|
||||
if bpy.app.version >= (4, 0, 0):
|
||||
with context.temp_override(**override):
|
||||
bpy.ops.export_scene.fbx(**settings)
|
||||
else:
|
||||
bpy.ops.export_scene.fbx(override, **settings)
|
||||
|
||||
print("\n[%s] Batch FBX export end." % datetime.now())
|
||||
|
||||
Reference in New Issue
Block a user