From 0435a943b6e062081bac3669914513435d7e382a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 5 Aug 2021 12:10:46 -0400 Subject: [PATCH] Move uv select all per @Jrius. --- korman/exporter/etlight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/etlight.py b/korman/exporter/etlight.py index 9518f21..fd6072c 100644 --- a/korman/exporter/etlight.py +++ b/korman/exporter/etlight.py @@ -421,6 +421,7 @@ class LightBaker: bo.name, modifier.uv_map, indent=2) with self._set_mode("EDIT"): bpy.ops.mesh.select_all(action="SELECT") + bpy.ops.uv.select_all(action="SELECT") bpy.ops.uv.pack_islands(margin=0.01) else: # same thread, see Sirius's suggestion RE smart unwrap. this seems to yield good @@ -430,7 +431,6 @@ class LightBaker: self._associate_image_with_uvtex(uvtex, image) with self._set_mode("EDIT"): bpy.ops.mesh.select_all(action="SELECT") - bpy.ops.uv.select_all(action="SELECT") bpy.ops.uv.smart_project(island_margin=0.05) def _prep_for_vcols(self, bo, toggle):