mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Selecting an IFC file dialog now filters ifc files for convenience
This commit is contained in:
@@ -324,6 +324,7 @@ class SelectIfcFile(bpy.types.Operator):
|
|||||||
bl_idname = "bim.select_ifc_file"
|
bl_idname = "bim.select_ifc_file"
|
||||||
bl_label = "Select IFC File"
|
bl_label = "Select IFC File"
|
||||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||||
|
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={"HIDDEN"})
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
bpy.context.scene.BIMProperties.ifc_file = self.filepath
|
bpy.context.scene.BIMProperties.ifc_file = self.filepath
|
||||||
|
|||||||
Reference in New Issue
Block a user