mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 15:07:38 +00:00
select all the offending objects at the end.
This commit is contained in:
@@ -1044,6 +1044,13 @@ class DebugActiveDrawing(bpy.types.Operator):
|
|||||||
|
|
||||||
test_elements(list(all_elements))
|
test_elements(list(all_elements))
|
||||||
|
|
||||||
|
if failing_elements:
|
||||||
|
for obj in context.scene.objects:
|
||||||
|
obj.select_set(False)
|
||||||
|
for element in failing_elements:
|
||||||
|
if obj := tool.Ifc.get_object(element):
|
||||||
|
obj.select_set(True)
|
||||||
|
|
||||||
print(f"\n{BOLD}{'='*60}{END}")
|
print(f"\n{BOLD}{'='*60}{END}")
|
||||||
if failing_elements:
|
if failing_elements:
|
||||||
print(f"{BOLD}{RED}Found {len(failing_elements)} failing element(s):{END}")
|
print(f"{BOLD}{RED}Found {len(failing_elements)} failing element(s):{END}")
|
||||||
|
|||||||
Reference in New Issue
Block a user