summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-08-05 18:31:08 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-08-05 18:31:08 -0500
commit136dd887adef857e828480141b41fe36f71ff810 (patch)
tree8130ffc80ed4bae17c1552d9808f63f570edefb7
parented3dcd7d9dd26ae7b4a05101d946002f405da4ee (diff)
Preserve original name in shader params cache
-rw-r--r--scene/resources/shader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp
index 424a54f344..44d524f142 100644
--- a/scene/resources/shader.cpp
+++ b/scene/resources/shader.cpp
@@ -76,8 +76,9 @@ void Shader::get_param_list(List<PropertyInfo> *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) {