hide "no object selected" label when there are no linked ifc files

This commit is contained in:
Andrej730
2024-03-20 11:26:45 +05:00
parent 97cc19ed43
commit 7f34d18bbf
@@ -318,9 +318,10 @@ class BIM_PT_links(Panel):
row = self.layout.row(align=True)
row.label(text="Object Culling Enabled", icon="MOD_TRIANGULATE")
if not LinksData.linked_data:
row = self.layout.row(align=True)
row.label(text="No Object Selected", icon="QUESTION")
if not LinksData.linked_data or not self.props.links:
if self.props.links:
row = self.layout.row(align=True)
row.label(text="No Object Selected", icon="QUESTION")
return
row = self.layout.row(align=True)