From 136dd887adef857e828480141b41fe36f71ff810 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 5 Aug 2021 18:31:08 -0500 Subject: [PATCH] Preserve original name in shader params cache --- scene/resources/shader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp index 424a54f3442..44d524f1424 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -76,8 +76,9 @@ void Shader::get_param_list(List *p_params) const { if (default_textures.has(pi.name)) { //do not show default textures continue; } + String original_name = pi.name; pi.name = "shader_param/" + pi.name; - params_cache[pi.name] = pi.name; + params_cache[pi.name] = original_name; if (p_params) { //small little hack if (pi.type == Variant::RID) {