From 1a8f2be4fdcc8c50d6847d3f3aa332ce8972a987 Mon Sep 17 00:00:00 2001 From: "Sigma Dimensions (Yass)" <79010126+myoualid@users.noreply.github.com> Date: Sun, 27 Aug 2023 18:19:33 +0100 Subject: [PATCH] Move grids panel under Project Setup --- src/blenderbim/blenderbim/bim/module/model/ui.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/model/ui.py b/src/blenderbim/blenderbim/bim/module/model/ui.py index 9ff0b0a282..6a0b8005f8 100644 --- a/src/blenderbim/blenderbim/bim/module/model/ui.py +++ b/src/blenderbim/blenderbim/bim/module/model/ui.py @@ -156,15 +156,14 @@ class BIM_PT_authoring(Panel): class BIM_PT_Grids(Panel): bl_label = "Grids" bl_idname = "BIM_PT_Grids" - bl_space_type = "VIEW_3D" - bl_region_type = "UI" bl_options = {"DEFAULT_CLOSED"} - bl_category = "BlenderBIM" + bl_space_type = "PROPERTIES" + bl_region_type = "WINDOW" + bl_context = "scene" + bl_parent_id = "BIM_PT_project_setup" def draw(self, context): - self.animation_props = context.scene.BIMAnimationProperties - row = self.layout.row() - row.operator("mesh.add_grid", icon="ADD", text="Add Grids") + self.layout.row().operator("mesh.add_grid", icon="ADD", text="Add Grids") class BIM_PT_array(bpy.types.Panel):