mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Add a more useful error message when no clashes are loaded for the given clashset
This commit is contained in:
committed by
Dion Moult
parent
1921b4cecf
commit
51dca4329c
@@ -1865,6 +1865,9 @@ class SelectIfcClashResults(bpy.types.Operator):
|
|||||||
for clash_set in clash_sets:
|
for clash_set in clash_sets:
|
||||||
if clash_set["name"] != clash_set_name:
|
if clash_set["name"] != clash_set_name:
|
||||||
continue
|
continue
|
||||||
|
if not "clashes" in clash_set.keys():
|
||||||
|
self.report({"WARNING"}, "No clashes found for the selected Clash Set.")
|
||||||
|
return {"CANCELLED"}
|
||||||
for clash in clash_set["clashes"].values():
|
for clash in clash_set["clashes"].values():
|
||||||
global_ids.extend([clash["a_global_id"], clash["b_global_id"]])
|
global_ids.extend([clash["a_global_id"], clash["b_global_id"]])
|
||||||
for obj in bpy.context.visible_objects:
|
for obj in bpy.context.visible_objects:
|
||||||
|
|||||||
Reference in New Issue
Block a user