Merge branch 'blender-v4.3-release'

This commit is contained in:
Bastien Montagne
2024-10-29 12:28:49 +01:00
2 changed files with 5 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier, @Mysteryem",
"version": (5, 12, 4),
"version": (5, 12, 5),
"blender": (4, 2, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UVs, vertex colors, materials, textures, cameras, lamps and actions",

View File

@@ -3634,9 +3634,12 @@ def save(operator, context,
if use_visible:
ctx_objects = tuple(obj for obj in ctx_objects if obj.visible_get())
# Sort exported objects by their names.
ctx_objects = sorted(ctx_objects, key=lambda ob: ob.name)
# Ensure no Objects are in Edit mode.
# Copy to a tuple for safety, to avoid the risk of modifying ctx_objects while iterating.
for obj in tuple(ctx_objects):
for obj in ctx_objects:
if not ensure_object_not_in_edit_mode(context, obj):
operator.report({'ERROR'}, "%s could not be set out of Edit Mode, so cannot be exported" % obj.name)
return {'CANCELLED'}