Fix #6495: when Shift+G is run to regenerate a wall, it refreshes the cut decorator as well.

This commit is contained in:
Ryan Schultz
2025-11-30 20:02:57 -06:00
parent e3d254d3e5
commit 5b7888984e
@@ -48,6 +48,7 @@ from bpy_extras.object_utils import AddObjectHelper, object_data_add
from gpu_extras.batch import batch_for_shader
from typing import Union, Optional, Any, cast
from collections.abc import Sequence
from bonsai.bim.module.drawing.decoration import DecoratorData
class FilledOpeningGenerator:
@@ -415,9 +416,13 @@ class RecalculateFill(bpy.types.Operator, tool.Ifc.Operator):
obj=building_obj,
representation=representation,
)
#Refresh cut decorator
DecoratorData.cut_cache.clear()
DecoratorData.fill_cache.clear()
DecoratorData.slice_cache.clear()
return {"FINISHED"}
class FlipFill(bpy.types.Operator, tool.Ifc.Operator):
bl_idname = "bim.flip_fill"
bl_label = "Flip Fill"