summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-06 10:02:10 +0100
committerGitHub <noreply@github.com>2019-01-06 10:02:10 +0100
commit0e25c32a77d619c8daa665527dd1f04f0f31f271 (patch)
tree555c3e15d722237db48bd2b424af98f9efb9d6e0
parent42a5b7545ad7a083bfcf5a2667e5f0b507f0014f (diff)
parent56000929fda5ed911026dbc012903441a8b52384 (diff)
Merge pull request #24797 from timoschwarzer/fix-code-completion
Fix code completion on nodes in current scene
-rw-r--r--modules/gdscript/gdscript_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index 56540b1269..64678c7240 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/modules/gdscript/gdscript_editor.cpp
@@ -2444,7 +2444,7 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base
context.function = parser.get_completion_function();
context.line = parser.get_completion_line();
- if (!context._class) {
+ if (!context._class || context._class->owner == NULL) {
context.base = p_owner;
context.base_path = p_base_path;
}