mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 21:12:07 +00:00
implement undo for 'patch' module #1475
This commit is contained in:
@@ -6,6 +6,7 @@ import json
|
|||||||
class SelectIfcPatchInput(bpy.types.Operator):
|
class SelectIfcPatchInput(bpy.types.Operator):
|
||||||
bl_idname = "bim.select_ifc_patch_input"
|
bl_idname = "bim.select_ifc_patch_input"
|
||||||
bl_label = "Select IFC Patch Input"
|
bl_label = "Select IFC Patch Input"
|
||||||
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
filter_glob: bpy.props.StringProperty(default="*.ifc", options={"HIDDEN"})
|
filter_glob: bpy.props.StringProperty(default="*.ifc", options={"HIDDEN"})
|
||||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ class SelectIfcPatchInput(bpy.types.Operator):
|
|||||||
class SelectIfcPatchOutput(bpy.types.Operator):
|
class SelectIfcPatchOutput(bpy.types.Operator):
|
||||||
bl_idname = "bim.select_ifc_patch_output"
|
bl_idname = "bim.select_ifc_patch_output"
|
||||||
bl_label = "Select IFC Patch Output"
|
bl_label = "Select IFC Patch Output"
|
||||||
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
filename_ext = ".ifc"
|
filename_ext = ".ifc"
|
||||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user