Shader Language: Add in-for declared variables within for-block scope.

This commit is contained in:
Enzo Nocera 2017-12-17 01:43:59 +01:00
parent f1683a290b
commit 8e2a1ffd6e

View file

@ -3426,7 +3426,7 @@ Error ShaderLanguage::_parse_block(BlockNode *p_block, const Map<StringName, Bui
} }
BlockNode *block = alloc_node<BlockNode>(); BlockNode *block = alloc_node<BlockNode>();
block->parent_block = p_block; block->parent_block = init_block;
cf->blocks.push_back(block); cf->blocks.push_back(block);
p_block->statements.push_back(cf); p_block->statements.push_back(cf);