Preserve original name in shader params cache
This commit is contained in:
parent
ed3dcd7d9d
commit
136dd887ad
|
@ -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…
Reference in New Issue