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:
-rw-r--r--add_curve_ivygen.py2
-rw-r--r--animation_add_corrective_shape_key.py2
-rw-r--r--mesh_tissue/tessellate_numpy.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/add_curve_ivygen.py b/add_curve_ivygen.py
index 7c683846..8fefeb65 100644
--- a/add_curve_ivygen.py
+++ b/add_curve_ivygen.py
@@ -438,7 +438,7 @@ def bvhtree_from_object(ob):
import bmesh
bm = bmesh.new()
- depsgraph = context.evaluated_depsgraph_get()
+ depsgraph = bpy.context.evaluated_depsgraph_get()
ob_eval = ob.evaluated_get(depsgraph)
mesh = ob_eval.to_mesh()
bm.from_mesh(mesh)
diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py
index 91d57396..58a4597f 100644
--- a/animation_add_corrective_shape_key.py
+++ b/animation_add_corrective_shape_key.py
@@ -70,7 +70,7 @@ def extract_vert_coords(ob, verts):
def extract_mapped_coords(ob, shape_verts):
totvert = len(shape_verts)
- depsgraph = context.evaluated_depsgraph_get()
+ depsgraph = bpy.context.evaluated_depsgraph_get()
ob_eval = ob.evaluated_get(depsgraph)
mesh = ob_eval.to_mesh()
diff --git a/mesh_tissue/tessellate_numpy.py b/mesh_tissue/tessellate_numpy.py
index 02464be7..e5f6db5c 100644
--- a/mesh_tissue/tessellate_numpy.py
+++ b/mesh_tissue/tessellate_numpy.py
@@ -73,7 +73,7 @@ def tassellate(ob0, ob1, offset, zscale, gen_modifiers, com_modifiers, mode,
old_me0 = ob0.data # Store generator mesh
if gen_modifiers or com_modifiers:
- depsgraph = context.evaluated_depsgraph_get()
+ depsgraph = bpy.context.evaluated_depsgraph_get()
else:
depsgraph = None