Skip to content
Snippets Groups Projects
Commit b7630913 authored by Dalai Felinto's avatar Dalai Felinto
Browse files

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

parent 0c19368e
Branches
Tags
No related merge requests found
...@@ -263,7 +263,7 @@ class ExportUVLayout(bpy.types.Operator): ...@@ -263,7 +263,7 @@ class ExportUVLayout(bpy.types.Operator):
obj.data.tag = True obj.data.tag = True
if self.modified: if self.modified:
mesh = obj.to_mesh(context.scene, True, 'PREVIEW') mesh = obj.to_mesh(context.depsgraph, True)
else: else:
mesh = obj.data mesh = obj.data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment