Merge pull request #14528 from AlmightyScientist/issue-14456
Shader Language: Add in-for declared variables within for-block scope.
This commit is contained in:
commit
dbae2d98e3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user