From 8e2a1ffd6ee5fccd7d7a6c42b524dfa443a2d3a3 Mon Sep 17 00:00:00 2001 From: Enzo Nocera <32960642+AlmightyScientist@users.noreply.github.com> Date: Sun, 17 Dec 2017 01:43:59 +0100 Subject: [PATCH] Shader Language: Add in-for declared variables within for-block scope. --- servers/visual/shader_language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index c69bbb9343a..47e6190ceaa 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -3426,7 +3426,7 @@ Error ShaderLanguage::_parse_block(BlockNode *p_block, const Map(); - block->parent_block = p_block; + block->parent_block = init_block; cf->blocks.push_back(block); p_block->statements.push_back(cf);