Fix T64721: Object Scatter addon broken after recent changes

This commit is contained in:
Jacques Lucke 2019-05-17 14:38:24 +02:00
parent 222969e380
commit d3882e8a34
Notes: blender-bot 2023-02-14 02:36:33 +01:00
Referenced by issue blender/blender#64721, scatter object pannel gone missing
2 changed files with 4 additions and 4 deletions

View File

@ -460,7 +460,7 @@ def bvhtree_from_object(object):
import bmesh
bm = bmesh.new()
depsgraph = context.evaluated_depsgraph_get()
depsgraph = bpy.context.evaluated_depsgraph_get()
object_eval = object.evaluated_get(depsgraph)
mesh = object_eval.to_mesh()
bm.from_mesh(mesh)

View File

@ -109,9 +109,9 @@ class ObjectScatterProperties(bpy.types.PropertyGroup):
class ObjectScatterPanel(bpy.types.Panel):
bl_idname = "OBJECT_PT_object_scatter"
bl_label = "Object Scatter"
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = '.objectmode'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "Tool"
def draw(self, context):
layout = self.layout