[Bf-extensions-cvs] [b7630913] blender2.8: UV_OT_export_layout: Correct API to obj.to_mesh(...)

Dalai Felinto noreply at git.blender.org
Thu Sep 6 16:13:25 CEST 2018


Commit: b7630913cde7272cebd3de19f928ef29313c10d1
Author: Dalai Felinto
Date:   Thu Sep 6 11:04:15 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBAb7630913cde7272cebd3de19f928ef29313c10d1

UV_OT_export_layout: Correct API to obj.to_mesh(...)

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

M	io_mesh_uv_layout/__init__.py

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

diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py
index 061cf376..e7da8c7b 100644
--- a/io_mesh_uv_layout/__init__.py
+++ b/io_mesh_uv_layout/__init__.py
@@ -263,7 +263,7 @@ class ExportUVLayout(bpy.types.Operator):
             obj.data.tag = True
 
             if self.modified:
-                mesh = obj.to_mesh(context.scene, True, 'PREVIEW')
+                mesh = obj.to_mesh(context.depsgraph, True)
             else:
                 mesh = obj.data



More information about the Bf-extensions-cvs mailing list