From b7630913cde7272cebd3de19f928ef29313c10d1 Mon Sep 17 00:00:00 2001
From: Dalai Felinto <dfelinto@gmail.com>
Date: Thu, 6 Sep 2018 11:04:15 -0300
Subject: [PATCH] UV_OT_export_layout: Correct API to obj.to_mesh(...)

---
 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 061cf376d..e7da8c7b7 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
 
-- 
GitLab