mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-29 12:05:36 +00:00
Fix T64941: Insert missing bpy. to access context after recent changes
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user