This commit is contained in:
Andrej730
2024-12-30 11:58:30 +05:00
parent b506b72d9f
commit da9cbbc61b
3 changed files with 4 additions and 9 deletions
@@ -1261,12 +1261,7 @@ class SlabDirectionDecorator:
if not obj: if not obj:
return return
element = tool.Ifc.get_entity(obj) element = tool.Ifc.get_entity(obj)
if (element if element and (element.is_a("IfcSlab") or element.is_a("IfcRoof")):
and (
element.is_a("IfcSlab")
or element.is_a("IfcRoof")
)
):
dir = [obj.matrix_world @ Vector(d) for d in dir] dir = [obj.matrix_world @ Vector(d) for d in dir]
base = [obj.matrix_world @ Vector(d) for d in base] base = [obj.matrix_world @ Vector(d) for d in base]
self.draw_batch("LINES", dir, selected_elements_color, [(0, 1), (1, 2), (1, 3)]) self.draw_batch("LINES", dir, selected_elements_color, [(0, 1), (1, 2), (1, 3)])