mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Fix #6495: when Shift+G is run to regenerate a wall, it refreshes the cut decorator as well.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user