diff options
Diffstat (limited to 'add_curve_ivygen.py')
-rw-r--r-- | add_curve_ivygen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/add_curve_ivygen.py b/add_curve_ivygen.py index 8e1965f5..60f6ec59 100644 --- a/add_curve_ivygen.py +++ b/add_curve_ivygen.py @@ -438,7 +438,8 @@ def bvhtree_from_object(ob): import bmesh bm = bmesh.new() - mesh = ob.to_mesh(bpy.context.depsgraph, True) + depsgraph = context.evaluated_depsgraph_get() + mesh = ob.evaluated_get(depsgraph).to_mesh() bm.from_mesh(mesh) bm.transform(ob.matrix_world) |