mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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):
|
if not geometry.get_object_data(obj) and geometry.is_text_literal(representation):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
element = ifc.get_entity(obj)
|
||||||
|
assert element
|
||||||
|
geometry.clear_cache(element)
|
||||||
geometry.reimport_element_representations(obj, representation, apply_openings=apply_openings)
|
geometry.reimport_element_representations(obj, representation, apply_openings=apply_openings)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user