mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Hide scale warning for non ifc objects
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user