From a17cabe4c9976547b20078149a99c9bb58152d1d Mon Sep 17 00:00:00 2001
From: Bastien Montagne <montagne29@wanadoo.fr>
Date: Tue, 8 Oct 2019 15:51:21 +0200
Subject: [PATCH] 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.
---
 io_scene_fbx/__init__.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index b836f1b0a..382553bad 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")
 
-- 
GitLab