Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-05-17 15:38:24 +0300
committerJacques Lucke <mail@jlucke.com>2019-05-17 15:38:47 +0300
commitd3882e8a34e8a2d6cc26cfe59fd4461ef6d8a824 (patch)
tree5f316de6bdfb0c6635db2acab9921ec2011052fa /object_scatter
parent222969e3805359444579d7ab96d75b93c73212fe (diff)
Fix T64721: Object Scatter addon broken after recent changes
Diffstat (limited to 'object_scatter')
-rw-r--r--object_scatter/operator.py2
-rw-r--r--object_scatter/ui.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/object_scatter/operator.py b/object_scatter/operator.py
index e040ef15..dbb277fe 100644
--- a/object_scatter/operator.py
+++ b/object_scatter/operator.py
@@ -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)
diff --git a/object_scatter/ui.py b/object_scatter/ui.py
index d04f92ad..d62b8e38 100644
--- a/object_scatter/ui.py
+++ b/object_scatter/ui.py
@@ -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