mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-07 16:31:37 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user