From c4d54f7709691413c4ca38b092fc476e778067f9 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 18 Aug 2025 17:48:32 +0500 Subject: [PATCH] switch_representation - clear geometry cache Noticed wall representation wasn't updating after window was added to it, because of the existing cache. --- src/bonsai/bonsai/core/geometry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bonsai/bonsai/core/geometry.py b/src/bonsai/bonsai/core/geometry.py index fc6fc73274..f258e1b842 100644 --- a/src/bonsai/bonsai/core/geometry.py +++ b/src/bonsai/bonsai/core/geometry.py @@ -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)