From 3148c4219f001511b69c3fb31dfedca98b9f4360 Mon Sep 17 00:00:00 2001 From: Philipp Oeser <info@graphics-engineer.com> Date: Tue, 4 Dec 2018 15:13:37 +0100 Subject: [PATCH] mesh_looptools: update for 2.8 Fixes T58714 --- mesh_looptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_looptools.py b/mesh_looptools.py index 6e7d2b14e..4a540b305 100644 --- a/mesh_looptools.py +++ b/mesh_looptools.py @@ -526,7 +526,7 @@ def get_derived_bmesh(object, bm, scene): mod.show_viewport = False # get derived mesh bm_mod = bmesh.new() - mesh_mod = object.to_mesh(scene, True, 'PREVIEW') + mesh_mod = object.to_mesh(bpy.context.depsgraph, True) bm_mod.from_mesh(mesh_mod) bpy.context.blend_data.meshes.remove(mesh_mod) # re-enable other modifiers -- GitLab