diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-12-06 13:02:50 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-12-06 13:02:50 +0300 |
commit | c3c0fd18ee1d58f8c9e7b03329894503afffa732 (patch) | |
tree | 188553f2c5afd70e532f20e4b22e684c8dc96eb4 /object_print3d_utils/mesh_helpers.py | |
parent | 816a19f273791958c981c18a340309d25263a4f1 (diff) |
3D Print Toolbox: update to 2.8 API
would fail to calculate Volume or Area for object with modifier
Fixes T58798
Diffstat (limited to 'object_print3d_utils/mesh_helpers.py')
-rw-r--r-- | object_print3d_utils/mesh_helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/object_print3d_utils/mesh_helpers.py b/object_print3d_utils/mesh_helpers.py index 6a18e3e2..56dbfc65 100644 --- a/object_print3d_utils/mesh_helpers.py +++ b/object_print3d_utils/mesh_helpers.py @@ -32,7 +32,7 @@ def bmesh_copy_from_object(obj, transform=True, triangulate=True, apply_modifier if apply_modifiers and obj.modifiers: import bpy - me = obj.to_mesh(bpy.context.scene, True, 'PREVIEW') + me = obj.to_mesh(depsgraph=bpy.context.depsgraph, apply_modifiers=True) bm = bmesh.new() bm.from_mesh(me) bpy.data.meshes.remove(me) |