diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-13 21:13:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 21:13:40 +0200 |
commit | f6022d2aa8973517858bbc673f300ba2ed08884c (patch) | |
tree | 71b42e827bcd8616d5e05b85374e509ee9dbf2ac /modules | |
parent | 45d9df2e63bb8ecb65db408e6672533655d4a3d5 (diff) | |
parent | da9daf4c3a43f45be4438d538ea260b7988795b0 (diff) |
Merge pull request #52362 from vnen/gdscript-lambda-completion-crash
GDScript: Do not complete lambda arguments from parent class
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index f809a4dab8..f79e5726ce 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1733,7 +1733,7 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context, } } - if (is_function_parameter && p_context.current_function && p_context.current_class) { + if (is_function_parameter && p_context.current_function && p_context.current_function->source_lambda == nullptr && p_context.current_class) { // Check if it's override of native function, then we can assume the type from the signature. GDScriptParser::DataType base_type = p_context.current_class->base_type; while (base_type.is_set()) { |