Hide scale warning for non ifc objects

This commit is contained in:
Andrej730
2024-10-22 11:24:26 +05:00
parent 71c5e83fa0
commit bcf54b643d
+5 -1
View File
@@ -491,7 +491,11 @@ class BIM_PT_tabs(Panel):
op = row.operator("bim.open_uri", text="", icon="QUESTION")
op.uri = "https://docs.bonsaibim.org/guides/troubleshooting.html#incompatible-blender-features"
if (o := context.active_object) and [round(x, 4) for x in list(o.matrix_world.to_scale())] != [1, 1, 1]:
if (
(o := context.active_object)
and tool.Ifc.get_entity(o)
and [round(x, 4) for x in list(o.matrix_world.to_scale())] != [1, 1, 1]
):
box = self.layout.box()
box.alert = True
row = box.row(align=True)