diff options
| author | Juan Linietsky | 2017-08-25 00:34:32 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-08-25 00:34:32 -0300 |
| commit | b1c0e45b03aa14453846c9a888763077eef2476b (patch) | |
| tree | dd0436d887330c110b3b768bab2398a826a4d4b7 /modules/gdscript/gd_parser.cpp | |
| parent | a7e8aa405394c383c7d84e667c9a4165b2cfaf3b (diff) | |
| download | godot-b1c0e45b03aa14453846c9a888763077eef2476b.tar.gz godot-b1c0e45b03aa14453846c9a888763077eef2476b.tar.zst godot-b1c0e45b03aa14453846c9a888763077eef2476b.zip | |
Diffstat (limited to 'modules/gdscript/gd_parser.cpp')
| -rw-r--r-- | modules/gdscript/gd_parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp index de8daedb8..0cda1701c 100644 --- a/modules/gdscript/gd_parser.cpp +++ b/modules/gdscript/gd_parser.cpp @@ -2470,6 +2470,8 @@ void GDParser::_parse_block(BlockNode *p_block, bool p_static) { cf_if->body = alloc_node<BlockNode>(); cf_if->body->parent_block = p_block; + cf_if->body->if_condition = condition; //helps code completion + p_block->sub_blocks.push_back(cf_if->body); if (!_enter_indent_block(cf_if->body)) { |
