summaryrefslogtreecommitdiff
path: root/scene/resources/shader.cpp
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-11-11 11:27:32 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2022-11-11 11:30:34 +0300
commit9d4816fd4a42d825b9f6ad266eaba0a16f5c0f25 (patch)
treeb107cc19181a86cdff51a3be932f31ee2e1ef32d /scene/resources/shader.cpp
parentdca5cb8e40fd2a348a59ea73c597eb742c14c980 (diff)
Fix `Shader::has_parameter` to return a correct value
Diffstat (limited to 'scene/resources/shader.cpp')
-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 4d566178a5..3a671edeea 100644
--- a/scene/resources/shader.cpp
+++ b/scene/resources/shader.cpp
@@ -177,7 +177,7 @@ bool Shader::is_text_shader() const {
}
bool Shader::has_parameter(const StringName &p_name) const {
- return params_cache.has("shader_parameter/" + p_name);
+ return params_cache.has(p_name);
}
void Shader::_update_shader() const {