[Bf-extensions-cvs] [91686697] blender2.8: Fix T59504: UV export did not export active object when not selected

Jacques Lucke noreply at git.blender.org
Tue Dec 18 10:59:11 CET 2018


Commit: 91686697aad63a42d479ac62c6a39031c1827870
Author: Jacques Lucke
Date:   Tue Dec 18 10:58:23 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBA91686697aad63a42d479ac62c6a39031c1827870

Fix T59504: UV export did not export active object when not selected

===================================================================

M	io_mesh_uv_layout/__init__.py

===================================================================

diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py
index bd2c97bd..ad20a7a1 100644
--- a/io_mesh_uv_layout/__init__.py
+++ b/io_mesh_uv_layout/__init__.py
@@ -160,7 +160,7 @@ class ExportUVLayout(bpy.types.Operator):
 
     @staticmethod
     def iter_objects_to_export(context):
-        for obj in context.selected_objects:
+        for obj in {*context.selected_objects, context.active_object}:
             if obj.type != 'MESH':
                 continue
             mesh = obj.data



More information about the Bf-extensions-cvs mailing list