mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Merge two Services sections in Services and Systems tab #4001
Two similar sections were needed in the old ui before we added tabs
This commit is contained in:
@@ -151,7 +151,6 @@ classes = [
|
||||
ui.BIM_PT_tab_references,
|
||||
# Services and systems
|
||||
ui.BIM_PT_tab_services,
|
||||
ui.BIM_PT_tab_services_object,
|
||||
ui.BIM_PT_tab_zones,
|
||||
# Structural analysis
|
||||
ui.BIM_PT_tab_structural,
|
||||
|
||||
@@ -129,7 +129,7 @@ class BIM_PT_ports(Panel):
|
||||
bl_region_type = "WINDOW"
|
||||
bl_context = "object"
|
||||
bl_order = 1
|
||||
bl_parent_id = "BIM_PT_tab_services_object"
|
||||
bl_parent_id = "BIM_PT_tab_services"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -209,7 +209,7 @@ class BIM_PT_port(Panel):
|
||||
bl_region_type = "WINDOW"
|
||||
bl_context = "object"
|
||||
bl_order = 1
|
||||
bl_parent_id = "BIM_PT_tab_services_object"
|
||||
bl_parent_id = "BIM_PT_tab_services"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -284,7 +284,7 @@ class BIM_PT_flow_controls(Panel):
|
||||
bl_region_type = "WINDOW"
|
||||
bl_context = "object"
|
||||
bl_order = 1
|
||||
bl_parent_id = "BIM_PT_tab_services_object"
|
||||
bl_parent_id = "BIM_PT_tab_services"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
||||
@@ -750,21 +750,6 @@ class BIM_PT_tab_references(Panel):
|
||||
pass
|
||||
|
||||
|
||||
class BIM_PT_tab_services_object(Panel):
|
||||
bl_label = "Services"
|
||||
bl_space_type = "PROPERTIES"
|
||||
bl_region_type = "WINDOW"
|
||||
bl_context = "scene"
|
||||
bl_order = 1
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return tool.Blender.is_tab(context, "SERVICES") and tool.Ifc.get()
|
||||
|
||||
def draw(self, context):
|
||||
pass
|
||||
|
||||
|
||||
class BIM_PT_tab_misc(Panel):
|
||||
bl_label = "Misc."
|
||||
bl_space_type = "PROPERTIES"
|
||||
|
||||
Reference in New Issue
Block a user