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);