Shader Language: Add in-for declared variables within for-block scope.
This commit is contained in:
parent
f1683a290b
commit
8e2a1ffd6e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue