[Bf-extensions-cvs] [a17cabe4] master: Fix T70515: I can not export active collection only.
Bastien Montagne
noreply at git.blender.org
Tue Oct 8 15:52:06 CEST 2019
Commit: a17cabe4c9976547b20078149a99c9bb58152d1d
Author: Bastien Montagne
Date: Tue Oct 8 15:51:21 2019 +0200
Branches: master
https://developer.blender.org/rBAa17cabe4c9976547b20078149a99c9bb58152d1d
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.
===================================================================
M io_scene_fbx/__init__.py
===================================================================
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")
More information about the Bf-extensions-cvs
mailing list