Merge pull request #51297 from aaronfranke/shader-param-cache
Preserve original name in shader params cache
This commit is contained in:
commit
7997a188ca
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue