From 56000929fda5ed911026dbc012903441a8b52384 Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Sat, 5 Jan 2019 23:17:02 +0100 Subject: [PATCH] Fix code completion on nodes in current scene --- modules/gdscript/gdscript_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 56540b12694..64678c72405 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; }