mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
clear list of entities failed when execute Tester
This commit is contained in:
@@ -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]:
|
def execute_tester(self, ifc_data: ifcopenshell.file, ifc_path: str, specs_path: str) -> Union[set[str], None]:
|
||||||
props = bpy.context.scene.IfcTesterProperties
|
props = bpy.context.scene.IfcTesterProperties
|
||||||
|
props.failed_entities.clear()
|
||||||
|
|
||||||
# No need for if-statement, just postponing lots of diffs.
|
# No need for if-statement, just postponing lots of diffs.
|
||||||
if True:
|
if True:
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class BIM_PT_tester(Panel):
|
|||||||
op2.spec_index = props.active_specification_index
|
op2.spec_index = props.active_specification_index
|
||||||
op2.req_index = i
|
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 = self.layout.row()
|
||||||
row.label(text=f"Failed entities [{props.n_entities}]:")
|
row.label(text=f"Failed entities [{props.n_entities}]:")
|
||||||
self.layout.template_list(
|
self.layout.template_list(
|
||||||
|
|||||||
Reference in New Issue
Block a user