mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
bim.refresh_library - add missing undo flag
It's unsafe in Blender to leave operators that edit blend data without undo flag.
This commit is contained in:
@@ -210,6 +210,7 @@ class SelectLibraryFile(bpy.types.Operator, IFCFileSelector):
|
|||||||
class RefreshLibrary(bpy.types.Operator):
|
class RefreshLibrary(bpy.types.Operator):
|
||||||
bl_idname = "bim.refresh_library"
|
bl_idname = "bim.refresh_library"
|
||||||
bl_label = "Refresh Library"
|
bl_label = "Refresh Library"
|
||||||
|
bl_options = {"UNDO"}
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
self.props = tool.Project.get_project_props()
|
self.props = tool.Project.get_project_props()
|
||||||
|
|||||||
Reference in New Issue
Block a user