Fix T64721: Object Scatter addon broken after recent changes
This commit is contained in:
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
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue