[Bf-extensions-cvs] [678f7523] master: Fix T64941: Insert missing bpy. to access context after recent changes

Jacques Lucke noreply at git.blender.org
Tue May 21 14:40:17 CEST 2019


Commit: 678f7523b013cdb81068e6e28f03cd724895f306
Author: Jacques Lucke
Date:   Tue May 21 14:39:37 2019 +0200
Branches: master
https://developer.blender.org/rBA678f7523b013cdb81068e6e28f03cd724895f306

Fix T64941: Insert missing bpy. to access context after recent changes

===================================================================

M	add_curve_ivygen.py
M	animation_add_corrective_shape_key.py
M	mesh_tissue/tessellate_numpy.py

===================================================================

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



More information about the Bf-extensions-cvs mailing list