mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +00:00
Unindent project in spatial tree to save space
This commit is contained in:
@@ -209,19 +209,20 @@ class BIM_UL_containers_manager(UIList):
|
|||||||
col.prop(item, "elevation", emboss=False, text="")
|
col.prop(item, "elevation", emboss=False, text="")
|
||||||
|
|
||||||
def draw_hierarchy(self, row, item):
|
def draw_hierarchy(self, row, item):
|
||||||
for i in range(0, item.level_index):
|
if item.level_index:
|
||||||
row.label(text="", icon="BLANK1")
|
for i in range(0, item.level_index - 1):
|
||||||
if item.has_children:
|
row.label(text="", icon="BLANK1")
|
||||||
if item.is_expanded:
|
if item.has_children:
|
||||||
row.operator("bim.contract_container", text="", emboss=False, icon="DISCLOSURE_TRI_DOWN").container = (
|
if item.is_expanded:
|
||||||
item.ifc_definition_id
|
row.operator("bim.contract_container", text="", emboss=False, icon="DISCLOSURE_TRI_DOWN").container = (
|
||||||
)
|
item.ifc_definition_id
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
row.operator("bim.expand_container", text="", emboss=False, icon="DISCLOSURE_TRI_RIGHT").container = (
|
||||||
|
item.ifc_definition_id
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
row.operator("bim.expand_container", text="", emboss=False, icon="DISCLOSURE_TRI_RIGHT").container = (
|
row.label(text="", icon="BLANK1")
|
||||||
item.ifc_definition_id
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
row.label(text="", icon="BLANK1")
|
|
||||||
|
|
||||||
|
|
||||||
class BIM_UL_elements(UIList):
|
class BIM_UL_elements(UIList):
|
||||||
|
|||||||
Reference in New Issue
Block a user