3D Print Toolbox: update to 2.8 API
would fail to calculate Volume or Area for object with modifier Fixes T58798
This commit is contained in:
parent
816a19f273
commit
c3c0fd18ee
Notes:
blender-bot
2023-02-14 19:24:20 +01:00
Referenced by issue #58798, 3D Print Toolbox fails to calculate Volume or Area for object with modifier
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue