From 8b6d9ab95669a973ff6a8221745ab55ab580b2a4 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Wed, 28 Jul 2021 08:11:35 +0300 Subject: [PATCH] Fix varying usage in custom functions [3.x] --- 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 fc4c9f71213..85e4ff4daca 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -2839,7 +2839,7 @@ bool ShaderLanguage::_validate_varying_using(ShaderNode::Varying &p_varying, Str usage.var = &p_varying; usage.line = tk_line; unknown_varying_usages.push_back(usage); - return false; + break; case ShaderNode::Varying::STAGE_VERTEX: if (current_function == String("fragment") || current_function == String("light")) { p_varying.stage = ShaderNode::Varying::STAGE_VERTEX_TO_FRAGMENT_LIGHT;