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

This commit is contained in:
Jacques Lucke
2019-05-21 14:39:37 +02:00
parent 8a6d66a1db
commit 678f7523b0
3 changed files with 3 additions and 3 deletions

View File

@ -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)