clear list of entities failed when execute Tester

This commit is contained in:
c4rlosdias
2025-04-25 15:05:16 -03:00
committed by Andrej
parent 406962287c
commit 5d02afa47e
2 changed files with 2 additions and 1 deletions
@@ -70,6 +70,7 @@ class ExecuteIfcTester(bpy.types.Operator):
def execute_tester(self, ifc_data: ifcopenshell.file, ifc_path: str, specs_path: str) -> Union[set[str], None]:
props = bpy.context.scene.IfcTesterProperties
props.failed_entities.clear()
# No need for if-statement, just postponing lots of diffs.
if True:
+1 -1
View File
@@ -96,7 +96,7 @@ class BIM_PT_tester(Panel):
op2.spec_index = props.active_specification_index
op2.req_index = i
if props.old_index == props.active_specification_index and props.n_entities > 0:
if props.old_index == props.active_specification_index and props.n_entities > 0 and len(props.failed_entities)>0:
row = self.layout.row()
row.label(text=f"Failed entities [{props.n_entities}]:")
self.layout.template_list(