From 678f7523b013cdb81068e6e28f03cd724895f306 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 21 May 2019 14:39:37 +0200 Subject: Fix T64941: Insert missing bpy. to access context after recent changes --- add_curve_ivygen.py | 2 +- animation_add_corrective_shape_key.py | 2 +- mesh_tissue/tessellate_numpy.py | 2 +- 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 -- cgit v1.2.3