diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2018-01-09 21:34:42 +0100 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2018-01-09 23:12:39 +0100 |
commit | 58f3ad69c7954aab1c8fe7935c6a64ae7323c98c (patch) | |
tree | 113dea1f12b080d0af3a3fb1d5b3666cf275405e /modules/gdnative | |
parent | cc487f8ce9ba1b308f048905a1e5253abd740310 (diff) |
Fix warning when editor resource preview try to read pluginscript resource
Diffstat (limited to 'modules/gdnative')
-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 { |