mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +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 gpu_extras.batch import batch_for_shader
|
||||||
from typing import Union, Optional, Any, cast
|
from typing import Union, Optional, Any, cast
|
||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
|
from bonsai.bim.module.drawing.decoration import DecoratorData
|
||||||
|
|
||||||
|
|
||||||
class FilledOpeningGenerator:
|
class FilledOpeningGenerator:
|
||||||
@@ -415,9 +416,13 @@ class RecalculateFill(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
obj=building_obj,
|
obj=building_obj,
|
||||||
representation=representation,
|
representation=representation,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#Refresh cut decorator
|
||||||
|
DecoratorData.cut_cache.clear()
|
||||||
|
DecoratorData.fill_cache.clear()
|
||||||
|
DecoratorData.slice_cache.clear()
|
||||||
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
class FlipFill(bpy.types.Operator, tool.Ifc.Operator):
|
class FlipFill(bpy.types.Operator, tool.Ifc.Operator):
|
||||||
bl_idname = "bim.flip_fill"
|
bl_idname = "bim.flip_fill"
|
||||||
bl_label = "Flip Fill"
|
bl_label = "Flip Fill"
|
||||||
|
|||||||
Reference in New Issue
Block a user