summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
authorTimo Schwarzer <me@timoschwarzer.com>2019-01-05 23:17:02 +0100
committerTimo Schwarzer <me@timoschwarzer.com>2019-01-05 23:17:02 +0100
commit56000929fda5ed911026dbc012903441a8b52384 (patch)
tree8b3b8dc761f0d0de07ddd469f4e1c2d4929395e5 /modules/gdscript/gdscript_editor.cpp
parent021421e1808d68e7fb6d87ed027d3dc454b3291e (diff)
Fix code completion on nodes in current scene
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-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;
}