More grid panel to spatial subpanel

This commit is contained in:
Dion Moult
2024-09-06 16:40:09 +10:00
parent f27bb6effe
commit 6b14111b24
6 changed files with 18 additions and 19 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ classes = [
# Project overview
ui.BIM_PT_tab_new_project_wizard,
ui.BIM_PT_tab_project_info,
ui.BIM_PT_tab_spatial_decomposition,
ui.BIM_PT_tab_spatial,
ui.BIM_PT_tab_project_setup,
ui.BIM_PT_tab_geometry,
ui.BIM_PT_tab_stakeholders,
@@ -136,7 +136,6 @@ classes = (
ui.BIM_PT_roof,
ui.LaunchTypeManager,
ui.BIM_MT_model,
ui.BIM_PT_Grids,
grid.BIM_OT_add_object,
stair.BIM_OT_add_stair,
stair.AddStair,
-13
View File
@@ -160,19 +160,6 @@ class BIM_PT_authoring(Panel):
row.operator("bim.toggle_space_visibility")
class BIM_PT_Grids(Panel):
bl_label = "Grids"
bl_idname = "BIM_PT_Grids"
bl_options = {"DEFAULT_CLOSED"}
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_parent_id = "BIM_PT_tab_project_setup"
def draw(self, context):
self.layout.row().operator("mesh.add_grid", icon="ADD", text="Add Grids")
class BIM_PT_array(bpy.types.Panel):
bl_label = "Array"
bl_idname = "BIM_PT_array"
@@ -48,6 +48,7 @@ classes = (
ui.BIM_UL_containers_manager,
ui.BIM_UL_elements,
ui.BIM_PT_spatial_decomposition,
ui.BIM_PT_grids,
workspace.Hotkey,
)
+14 -2
View File
@@ -95,8 +95,7 @@ class BIM_PT_spatial_decomposition(Panel):
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_parent_id = "BIM_PT_tab_spatial_decomposition"
bl_options = {"HIDE_HEADER"}
bl_parent_id = "BIM_PT_tab_spatial"
@classmethod
def poll(cls, context):
@@ -196,6 +195,19 @@ class BIM_PT_spatial_decomposition(Panel):
)
class BIM_PT_grids(Panel):
bl_label = "Grids"
bl_idname = "BIM_PT_grids"
bl_options = {"DEFAULT_CLOSED"}
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_parent_id = "BIM_PT_tab_spatial"
def draw(self, context):
self.layout.row().operator("mesh.add_grid", icon="ADD", text="Add Grids")
class BIM_UL_containers_manager(UIList):
def __init__(self):
self.use_filter_show = True
+2 -2
View File
@@ -522,8 +522,8 @@ class BIM_PT_tab_project_info(Panel):
pass
class BIM_PT_tab_spatial_decomposition(Panel):
bl_label = "Spatial Decomposition"
class BIM_PT_tab_spatial(Panel):
bl_label = "Spatial"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"