Преглед изворни кода

GDScript: Fix autocompletion inference after `is` check

Fix #21915
George Marques пре 7 година
родитељ
комит
02acb07d81
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      modules/gdscript/gdscript_editor.cpp

+ 1 - 0
modules/gdscript/gdscript_editor.cpp

@@ -1189,6 +1189,7 @@ static bool _guess_identifier_type(const GDScriptCompletionContext &p_context, c
 				c.line = op->line;
 				c.block = blk;
 				if (_guess_expression_type(p_context, op->arguments[1], r_type)) {
+					r_type.type.is_meta_type = false;
 					return true;
 				}
 			}