Просмотр исходного кода

Also add the right metadata to the AMF plugin.

This ensures that the filetype shows up in the supported types of the open window
Jaime van Kessel 5 лет назад
Родитель
Сommit
0a136b58f0
1 измененных файлов с 12 добавлено и 1 удалено
  1. 12 1
      plugins/AMFReader/__init__.py

+ 12 - 1
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()}