1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Implemented, The Amazing Zylann Hack (tm), fixes #10603

This commit is contained in:
Juan Linietsky
2017-08-25 00:34:32 -03:00
parent a7e8aa4053
commit b1c0e45b03
3 changed files with 19 additions and 0 deletions

View File

@@ -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)) {