Merge pull request #51297 from aaronfranke/shader-param-cache

Preserve original name in shader params cache
This commit is contained in:
Yuri Roubinsky 2021-08-06 09:34:41 +03:00 committed by GitHub
commit 7997a188ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {