switch_representation - clear geometry cache

Noticed wall representation wasn't updating after window was added to it, because of the existing cache.
This commit is contained in:
Andrej730
2025-08-18 17:48:32 +05:00
parent bd8cdf5a82
commit c4d54f7709
+3
View File
@@ -136,6 +136,9 @@ def switch_representation(
if not geometry.get_object_data(obj) and geometry.is_text_literal(representation):
return
element = ifc.get_entity(obj)
assert element
geometry.clear_cache(element)
geometry.reimport_element_representations(obj, representation, apply_openings=apply_openings)