mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 04:11:00 +00:00
black .
This commit is contained in:
@@ -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)])
|
||||||
|
|||||||
@@ -826,7 +826,7 @@ class ShowOpenings(Operator, tool.Ifc.Operator):
|
|||||||
props = bpy.context.scene.BIMModelProperties
|
props = bpy.context.scene.BIMModelProperties
|
||||||
objs = context.selected_objects
|
objs = context.selected_objects
|
||||||
|
|
||||||
#add the obj's aggregate, as well, to objs
|
# add the obj's aggregate, as well, to objs
|
||||||
for obj in objs:
|
for obj in objs:
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
if element and getattr(element, "Decomposes", None):
|
if element and getattr(element, "Decomposes", None):
|
||||||
|
|||||||
Reference in New Issue
Block a user