mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
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.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user