From 27d47246b5d0af8870d9baf1d80a2142f74fb400 Mon Sep 17 00:00:00 2001 From: bitsawer Date: Fri, 22 Sep 2023 10:11:43 +0300 Subject: [PATCH] Fix ShaderGlobalsOverride property handling (cherry picked from commit 71e32364ee83ca4d59f505086e2e8c25fea50a22) --- scene/main/shader_globals_override.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/shader_globals_override.cpp b/scene/main/shader_globals_override.cpp index 7fff74e8e1a..e3c26c30e21 100644 --- a/scene/main/shader_globals_override.cpp +++ b/scene/main/shader_globals_override.cpp @@ -41,7 +41,7 @@ StringName *ShaderGlobalsOverride::_remap(const StringName &p_name) const { if (p.begins_with("params/")) { String q = p.replace_first("params/", ""); param_remaps[p] = q; - r = param_remaps.getptr(q); + r = param_remaps.getptr(p); } }