mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Allow keyboard shortcuts for import and export.
Turns out operators need to start with import/export. Odd.
This commit is contained in:
@@ -37,7 +37,7 @@ colour_list = [
|
|||||||
(.693, .349, .157, 1)]
|
(.693, .349, .157, 1)]
|
||||||
|
|
||||||
class ExportIFC(bpy.types.Operator):
|
class ExportIFC(bpy.types.Operator):
|
||||||
bl_idname = "bim.export_ifc"
|
bl_idname = "export_ifc.bim"
|
||||||
bl_label = "Export IFC"
|
bl_label = "Export IFC"
|
||||||
filename_ext = ".ifc"
|
filename_ext = ".ifc"
|
||||||
filepath: bpy.props.StringProperty(subtype='FILE_PATH')
|
filepath: bpy.props.StringProperty(subtype='FILE_PATH')
|
||||||
@@ -72,7 +72,7 @@ class ExportIFC(bpy.types.Operator):
|
|||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
|
||||||
class ImportIFC(bpy.types.Operator, ImportHelper):
|
class ImportIFC(bpy.types.Operator, ImportHelper):
|
||||||
bl_idname = "bim.import_ifc"
|
bl_idname = "import_ifc.bim"
|
||||||
bl_label = "Import IFC"
|
bl_label = "Import IFC"
|
||||||
filename_ext = ".ifc"
|
filename_ext = ".ifc"
|
||||||
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={'HIDDEN'})
|
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={'HIDDEN'})
|
||||||
|
|||||||
Reference in New Issue
Block a user