diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-15 15:11:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-16 11:34:11 +0300 |
commit | e5c3ae31189b3acb54d33061da2bd27c3d0abad5 (patch) | |
tree | a53fe430313980bc37f98966d35d2c390cdbfb62 /mesh_looptools.py | |
parent | 05baedacbfdb15b74a2c89a790e8b3f196ef1417 (diff) |
Addons: Adopt for Dependency Graph API changes
Mainly search-and-replace approach.
Tested the enabled-by-default export/import addons. Seems to work with
an exception of X3D which is still referencing Blender Internal material
properties.
Reviewers: brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D4866
Diffstat (limited to 'mesh_looptools.py')
-rw-r--r-- | mesh_looptools.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesh_looptools.py b/mesh_looptools.py index 58aba0bf..a863218d 100644 --- a/mesh_looptools.py +++ b/mesh_looptools.py @@ -526,7 +526,8 @@ def get_derived_bmesh(object, bm): mod.show_viewport = False # get derived mesh bm_mod = bmesh.new() - mesh_mod = object.to_mesh(bpy.context.depsgraph, True) + depsgraph = bpy.context.evaluated_depsgraph_get() + mesh_mod = object.evaluated_get(depsgraph).to_mesh() bm_mod.from_mesh(mesh_mod) bpy.context.blend_data.meshes.remove(mesh_mod) # re-enable other modifiers |