mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Merge pull request #24797 from timoschwarzer/fix-code-completion
Fix code completion on nodes in current scene
This commit is contained in:
@@ -2444,7 +2444,7 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base
|
|||||||
context.function = parser.get_completion_function();
|
context.function = parser.get_completion_function();
|
||||||
context.line = parser.get_completion_line();
|
context.line = parser.get_completion_line();
|
||||||
|
|
||||||
if (!context._class) {
|
if (!context._class || context._class->owner == NULL) {
|
||||||
context.base = p_owner;
|
context.base = p_owner;
|
||||||
context.base_path = p_base_path;
|
context.base_path = p_base_path;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user