Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2018-12-04 17:13:37 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2018-12-04 17:14:31 +0300
commit3148c4219f001511b69c3fb31dfedca98b9f4360 (patch)
tree2991f6b824547563dc60f76c401d7d223e100213 /mesh_looptools.py
parentdbb224a606f275b91ec504e01bfcd9dc79436002 (diff)
mesh_looptools: update for 2.8
Fixes T58714
Diffstat (limited to 'mesh_looptools.py')
-rw-r--r--mesh_looptools.py2
1 files changed, 1 insertions, 1 deletions
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