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

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>();
block->parent_block = p_block;
block->parent_block = init_block;
cf->blocks.push_back(block);
p_block->statements.push_back(cf);