From 0a136b58f0cc15901a7479f9627190947be89a37 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 30 Apr 2019 11:38:55 +0200 Subject: [PATCH] Also add the right metadata to the AMF plugin. This ensures that the filetype shows up in the supported types of the open window --- plugins/AMFReader/__init__.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/AMFReader/__init__.py b/plugins/AMFReader/__init__.py index e76bb782c3..c974a92d11 100644 --- a/plugins/AMFReader/__init__.py +++ b/plugins/AMFReader/__init__.py @@ -3,8 +3,19 @@ from . import AMFReader +from UM.i18n import i18nCatalog +i18n_catalog = i18nCatalog("uranium") + + def getMetaData(): - return {} + return { + "mesh_reader": [ + { + "extension": "amf", + "description": i18n_catalog.i18nc("@item:inlistbox", "AMF File") + } + ] + } def register(app): return {"mesh_reader": AMFReader.AMFReader()}