Fix T70515: I can not export active collection only.

Active collection and Selected objects are only valid when batch mode is
off, de-activate them in UI otherwise.
This commit is contained in:
Bastien Montagne 2019-10-08 15:51:21 +02:00
parent b25958d154
commit a17cabe4c9
Notes: blender-bot 2023-02-14 00:35:00 +01:00
Referenced by issue blender/blender#70515, I can not export active collection only
1 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
"version": (4, 18, 0),
"version": (4, 18, 1),
"blender": (2, 81, 6),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
@ -688,8 +688,11 @@ class FBX_PT_export_include(bpy.types.Panel):
sfile = context.space_data
operator = sfile.active_operator
layout.prop(operator, "use_selection")
layout.prop(operator, "use_active_collection")
sublayout = layout.column()
sublayout.enabled = (operator.batch_mode == 'OFF')
sublayout.prop(operator, "use_selection")
sublayout.prop(operator, "use_active_collection")
layout.column().prop(operator, "object_types")
layout.prop(operator, "use_custom_props")