From d23cf97214b028d328684b55946787fcf9bc4554 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 15 Dec 2015 11:21:19 +0100 Subject: [PATCH] Allow multiple file types per mesh reader A mesh reader plugin now uses a list of file types that it can offer to read, instead of being limited to one. Contributes to issue CURA-266. --- plugins/3MFReader/__init__.py | 10 ++++++---- plugins/GCodeReader/__init__.py | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/plugins/3MFReader/__init__.py b/plugins/3MFReader/__init__.py index d3863aa90f..610165f7a0 100644 --- a/plugins/3MFReader/__init__.py +++ b/plugins/3MFReader/__init__.py @@ -15,10 +15,12 @@ def getMetaData(): "description": catalog.i18nc("@info:whatsthis", "Provides support for reading 3MF files."), "api": 2 }, - "mesh_reader": { - "extension": "3mf", - "description": catalog.i18nc("@item:inlistbox", "3MF File") - } + "mesh_reader": [ + { + "extension": "3mf", + "description": catalog.i18nc("@item:inlistbox", "3MF File") + } + ] } def register(app): diff --git a/plugins/GCodeReader/__init__.py b/plugins/GCodeReader/__init__.py index 5b563867f2..c4ccddcc70 100644 --- a/plugins/GCodeReader/__init__.py +++ b/plugins/GCodeReader/__init__.py @@ -15,10 +15,12 @@ def getMetaData(): "description": catalog.i18nc("@info:whatsthis", "Provides support for reading GCode files."), "api": 2 }, - "mesh_reader": { - "extension": "gcode", - "description": catalog.i18nc("@item:inlistbox", "Gcode File") - } + "mesh_reader": [ + { + "extension": "gcode", + "description": catalog.i18nc("@item:inlistbox", "Gcode File") + } + ] } def register(app):