Merge pull request #15538 from touilleMan/fix-pluginscript-editor-preview
Fix pluginscript editor preview
This commit is contained in:
commit
082d83fe0b
|
@ -45,7 +45,11 @@ void PluginScriptLanguage::init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
String PluginScriptLanguage::get_type() const {
|
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 {
|
String PluginScriptLanguage::get_extension() const {
|
||||||
|
|
Loading…
Reference in New Issue