summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-06-05 11:04:23 +0200
committerGitHub <noreply@github.com>2020-06-05 11:04:23 +0200
commit399c88dcaaf8d4998c5d3b72396c8cdefdd52e13 (patch)
tree0f45d96b8658fec08e87fddd55a0bd3b68377769 /scene
parent150ba031deefcde3fb84886d00666bd673fbedea (diff)
parentffbb211bbe5d4c7cad881d9c34bccf0978226d1f (diff)
Merge pull request #39289 from mbrlabs/shader-has-param-fix
Add "shader_param/" prefix in Shader::has_param()
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp
index 4ca8032d65..4249542567 100644
--- a/scene/resources/shader.cpp
+++ b/scene/resources/shader.cpp
@@ -125,7 +125,7 @@ bool Shader::is_text_shader() 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 {