mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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:
parent
bcaea7db09
commit
d23cf97214
2 changed files with 12 additions and 8 deletions
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue