1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix code completion on nodes in current scene

This commit is contained in:
Timo Schwarzer
2019-01-05 23:17:02 +01:00
parent 021421e180
commit 56000929fd

View File

@@ -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;
}