mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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,
|
ui.BIM_PT_tab_references,
|
||||||
# Services and systems
|
# Services and systems
|
||||||
ui.BIM_PT_tab_services,
|
ui.BIM_PT_tab_services,
|
||||||
ui.BIM_PT_tab_services_object,
|
|
||||||
ui.BIM_PT_tab_zones,
|
ui.BIM_PT_tab_zones,
|
||||||
# Structural analysis
|
# Structural analysis
|
||||||
ui.BIM_PT_tab_structural,
|
ui.BIM_PT_tab_structural,
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class BIM_PT_ports(Panel):
|
|||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "object"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
bl_parent_id = "BIM_PT_tab_services_object"
|
bl_parent_id = "BIM_PT_tab_services"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
@@ -209,7 +209,7 @@ class BIM_PT_port(Panel):
|
|||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "object"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
bl_parent_id = "BIM_PT_tab_services_object"
|
bl_parent_id = "BIM_PT_tab_services"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
@@ -284,7 +284,7 @@ class BIM_PT_flow_controls(Panel):
|
|||||||
bl_region_type = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
bl_context = "object"
|
bl_context = "object"
|
||||||
bl_order = 1
|
bl_order = 1
|
||||||
bl_parent_id = "BIM_PT_tab_services_object"
|
bl_parent_id = "BIM_PT_tab_services"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
|||||||
@@ -750,21 +750,6 @@ class BIM_PT_tab_references(Panel):
|
|||||||
pass
|
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):
|
class BIM_PT_tab_misc(Panel):
|
||||||
bl_label = "Misc."
|
bl_label = "Misc."
|
||||||
bl_space_type = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
|
|||||||
Reference in New Issue
Block a user