summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-16 11:03:16 +0100
committerGitHub <noreply@github.com>2019-01-16 11:03:16 +0100
commitb4ec37af2cc4a626aa46b9af341e6d5b9e0676ce (patch)
tree192d9c4855d644934e057894bfdda162c65d4b4a /modules/gdscript/gdscript_editor.cpp
parente7844505b18fecebad1ce84ddc20fe510c469028 (diff)
parent31433ae8e4159d01ed57c334c72eb8593185b145 (diff)
Merge pull request #25014 from vnen/gdscript-fixes
Fix some GDScript issues
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r--modules/gdscript/gdscript_editor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index 64678c7240..08ad101967 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/modules/gdscript/gdscript_editor.cpp
@@ -1181,7 +1181,11 @@ 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;
+ r_type.type.is_meta_type = false; // Right-hand of `is` will be a meta type, but the left-hand value is not
+ // Not an assignment, it shouldn't carry any value
+ r_type.value = Variant();
+ r_type.assigned_expression = NULL;
+
return true;
}
}