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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-05-15 15:11:13 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-05-16 11:34:11 +0300
commite5c3ae31189b3acb54d33061da2bd27c3d0abad5 (patch)
treea53fe430313980bc37f98966d35d2c390cdbfb62 /add_curve_ivygen.py
parent05baedacbfdb15b74a2c89a790e8b3f196ef1417 (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 'add_curve_ivygen.py')
-rw-r--r--add_curve_ivygen.py3
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)