Set "shader_param/" prefix in Shader::has_param()
(cherry picked from commit ffbb211bbe
)
This commit is contained in:
parent
15b4192ec6
commit
ae67ec3ece
|
@ -154,7 +154,7 @@ bool Shader::is_text_shader() const {
|
||||||
|
|
||||||
bool Shader::has_param(const StringName &p_param) const {
|
bool Shader::has_param(const StringName &p_param) const {
|
||||||
|
|
||||||
return params_cache.has(p_param);
|
return params_cache.has("shader_param/" + p_param);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shader::_update_shader() const {
|
void Shader::_update_shader() const {
|
||||||
|
|
Loading…
Reference in New Issue