summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorMarcus Brummer <mbrlabs7@gmail.com>2020-06-04 17:41:10 +0200
committerMarcus Brummer <mbrlabs7@gmail.com>2020-06-04 17:41:10 +0200
commitffbb211bbe5d4c7cad881d9c34bccf0978226d1f (patch)
treea0533b4e1907c8aca141849b726283afd9f73c28 /scene
parentc0ff2a388dff38b86b888b9822f26cd3ab04e727 (diff)
Set "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 {