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.
This commit is contained in:
Ghostkeeper 2015-12-15 11:21:19 +01:00
parent bcaea7db09
commit d23cf97214
2 changed files with 12 additions and 8 deletions

View file

@ -15,10 +15,12 @@ def getMetaData():
"description": catalog.i18nc("@info:whatsthis", "Provides support for reading 3MF files."), "description": catalog.i18nc("@info:whatsthis", "Provides support for reading 3MF files."),
"api": 2 "api": 2
}, },
"mesh_reader": { "mesh_reader": [
"extension": "3mf", {
"description": catalog.i18nc("@item:inlistbox", "3MF File") "extension": "3mf",
} "description": catalog.i18nc("@item:inlistbox", "3MF File")
}
]
} }
def register(app): def register(app):

View file

@ -15,10 +15,12 @@ def getMetaData():
"description": catalog.i18nc("@info:whatsthis", "Provides support for reading GCode files."), "description": catalog.i18nc("@info:whatsthis", "Provides support for reading GCode files."),
"api": 2 "api": 2
}, },
"mesh_reader": { "mesh_reader": [
"extension": "gcode", {
"description": catalog.i18nc("@item:inlistbox", "Gcode File") "extension": "gcode",
} "description": catalog.i18nc("@item:inlistbox", "Gcode File")
}
]
} }
def register(app): def register(app):