diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-10-08 16:51:21 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-10-08 16:51:21 +0300 |
commit | a17cabe4c9976547b20078149a99c9bb58152d1d (patch) | |
tree | a915d866da59384972b93bed31a176de1af02ced /io_scene_fbx | |
parent | b25958d1542648c890a9199694b4a9f6ec5ffcb3 (diff) |
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.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index b836f1b0..382553ba 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -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") |