Selecting an IFC file dialog now filters ifc files for convenience

This commit is contained in:
Dion Moult
2021-04-20 12:45:42 +10:00
parent 8ac8ad33b3
commit f2bd46d699
@@ -324,6 +324,7 @@ class SelectIfcFile(bpy.types.Operator):
bl_idname = "bim.select_ifc_file"
bl_label = "Select IFC File"
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={"HIDDEN"})
def execute(self, context):
bpy.context.scene.BIMProperties.ifc_file = self.filepath