From 91686697aad63a42d479ac62c6a39031c1827870 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 18 Dec 2018 10:58:23 +0100 Subject: Fix T59504: UV export did not export active object when not selected --- io_mesh_uv_layout/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3