bugfix: Overlapping names caused it to always export from meters.

master
TigerKat 4 years ago
parent 0adfd9cc30
commit 176fe43faf

@ -58,8 +58,8 @@ class ImportGeo(bpy.types.Operator, ImportHelper):
return import_geo.load(self, context, 1.0, **keywords) return import_geo.load(self, context, 1.0, **keywords)
class ImportGeoMetric(bpy.types.Operator, ImportHelper): class ImportGeoMetric(bpy.types.Operator, ImportHelper):
bl_idname = "import_scene.geo" bl_idname = "import_scene_metric.geo"
bl_label = "Import GEO" bl_label = "Import GEO (Metric)"
filename_ext = ".geo" filename_ext = ".geo"
filter_glob = StringProperty(default="*.geo", options={'HIDDEN'}) filter_glob = StringProperty(default="*.geo", options={'HIDDEN'})
@ -82,8 +82,8 @@ class ExportGeo(bpy.types.Operator, ExportHelper):
return export_geo.save(self, context, 1.0, **keywords) return export_geo.save(self, context, 1.0, **keywords)
class ExportGeoMetric(bpy.types.Operator, ExportHelper): class ExportGeoMetric(bpy.types.Operator, ExportHelper):
bl_idname = "export_scene.geo" bl_idname = "export_scene_metric.geo"
bl_label = "Export GEO" bl_label = "Export GEO (Metric)"
filename_ext = ".geo" filename_ext = ".geo"
filter_glob = StringProperty(default="*.geo", options={'HIDDEN'}) filter_glob = StringProperty(default="*.geo", options={'HIDDEN'})

Loading…
Cancel
Save