Merge pull request #14528 from AlmightyScientist/issue-14456

Shader Language: Add in-for declared variables within for-block scope.
This commit is contained in:
Rémi Verschelde 2017-12-17 14:24:53 +01:00 committed by GitHub
commit dbae2d98e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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