summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-09-13 10:56:22 -0300
committerGeorge Marques <george@gmarqu.es>2018-09-19 11:17:46 -0300
commit02acb07d81e598c7b2689a77d8a8ac0ee64c2714 (patch)
tree7f4feea26e530e1b49e9eb2cd6eb1420b3b5089e
parent726e836cd9b6eee5e060b694e076535ad5b5a7ae (diff)
GDScript: Fix autocompletion inference after `is` check
Fix #21915
-rw-r--r--modules/gdscript/gdscript_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index 2ad6b42223..a9b641de50 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/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;
}
}