Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2022-07-28 22:12:06 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2022-07-28 22:12:06 +0300
commitfdebdd681f0bee5fb1914eaa8b1c2c022b73a2f1 (patch)
tree01d820e16ed306f891e3f0ebead0800fd9af564a /io_mesh_uv_layout/__init__.py
parentec558f2a91577304a84fa378eba23ed206450bff (diff)
UV Layout: don't convert line coordinates to 3d
Although shader uses 3D attribute, it fills missing components with vec4(0,0,0,1). This was changed in rBA563ea27eb1a8
Diffstat (limited to 'io_mesh_uv_layout/__init__.py')
-rw-r--r--io_mesh_uv_layout/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py
index ceb5ddbc..40d9b501 100644
--- a/io_mesh_uv_layout/__init__.py
+++ b/io_mesh_uv_layout/__init__.py
@@ -3,7 +3,7 @@
bl_info = {
"name": "UV Layout",
"author": "Campbell Barton, Matt Ebb",
- "version": (1, 1, 2),
+ "version": (1, 1, 3),
"blender": (3, 0, 0),
"location": "Image-Window > UVs > Export UV Layout",
"description": "Export the UV layout as a 2D graphic",
@@ -128,10 +128,10 @@ class ExportUVLayout(bpy.types.Operator):
polygon_data = list(self.iter_polygon_data_to_draw(context, meshes))
different_colors = set(color for _, color in polygon_data)
if self.modified:
- depsgraph = context.evaluated_depsgraph_get()
- for obj in self.iter_objects_to_export(context):
- obj_eval = obj.evaluated_get(depsgraph)
- obj_eval.to_mesh_clear()
+ depsgraph = context.evaluated_depsgraph_get()
+ for obj in self.iter_objects_to_export(context):
+ obj_eval = obj.evaluated_get(depsgraph)
+ obj_eval.to_mesh_clear()
export = self.get_exporter()
export(filepath, polygon_data, different_colors, self.size[0], self.size[1], self.opacity)