diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-10 10:37:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-10 10:37:41 +0100 |
commit | 082d83fe0b466eba034332d64d092b1cff026e07 (patch) | |
tree | a4f592c2344d6a68a6510457d531fb2c79cbe00c /modules | |
parent | 4a25a4e53f4c3b457ac2003bab7cf0001dd5aab1 (diff) | |
parent | 58f3ad69c7954aab1c8fe7935c6a64ae7323c98c (diff) |
Merge pull request #15538 from touilleMan/fix-pluginscript-editor-preview
Fix pluginscript editor preview
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdnative/pluginscript/pluginscript_language.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gdnative/pluginscript/pluginscript_language.cpp b/modules/gdnative/pluginscript/pluginscript_language.cpp index 2751d73ca3..8101ebc6f3 100644 --- a/modules/gdnative/pluginscript/pluginscript_language.cpp +++ b/modules/gdnative/pluginscript/pluginscript_language.cpp @@ -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 { |