Fix warning when editor resource preview try to read pluginscript resource

This commit is contained in:
Emmanuel Leblond 2018-01-09 21:34:42 +01:00
parent cc487f8ce9
commit 58f3ad69c7
No known key found for this signature in database
GPG key ID: C360860E645EFFC0

View file

@ -45,7 +45,11 @@ void PluginScriptLanguage::init() {
}
String PluginScriptLanguage::get_type() const {
return String(_desc.type);
// We should use _desc.type here, however the returned type is used to
// query ClassDB which would complain given the type is not registered
// from his point of view...
// To solve this we just use a more generic (but present in ClassDB) type.
return String("PluginScript");
}
String PluginScriptLanguage::get_extension() const {