From e55523ce3e05cfe1066e8c44f2c5c3c6bc744202 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 14 Mar 2025 14:55:40 +0500 Subject: [PATCH] bim.show_loads - add undo for safety In Blender it's unsafe to leave operators without UNDO options if they edit any ID data-block. --- src/bonsai/bonsai/bim/module/structural/operator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bonsai/bonsai/bim/module/structural/operator.py b/src/bonsai/bonsai/bim/module/structural/operator.py index aec6dc4097..6836633d54 100644 --- a/src/bonsai/bonsai/bim/module/structural/operator.py +++ b/src/bonsai/bonsai/bim/module/structural/operator.py @@ -36,6 +36,7 @@ class ShowLoads(bpy.types.Operator): bl_idname = "bim.show_loads" bl_label = "Show Loads in 3D View" + bl_options = {"REGISTER", "UNDO"} def modal(self, context, event): if event.type == "F5":