[Bf-extensions-cvs] [3148c421] blender2.8: mesh_looptools: update for 2.8
Philipp Oeser
noreply at git.blender.org
Tue Dec 4 15:21:20 CET 2018
Commit: 3148c4219f001511b69c3fb31dfedca98b9f4360
Author: Philipp Oeser
Date: Tue Dec 4 15:13:37 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBA3148c4219f001511b69c3fb31dfedca98b9f4360
mesh_looptools: update for 2.8
Fixes T58714
===================================================================
M mesh_looptools.py
===================================================================
diff --git a/mesh_looptools.py b/mesh_looptools.py
index 6e7d2b14..4a540b30 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
More information about the Bf-extensions-cvs
mailing list