diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-11-11 11:27:32 +0300 |
---|---|---|
committer | Yuri Rubinsky <chaosus89@gmail.com> | 2022-11-11 11:30:34 +0300 |
commit | 9d4816fd4a42d825b9f6ad266eaba0a16f5c0f25 (patch) | |
tree | b107cc19181a86cdff51a3be932f31ee2e1ef32d /scene/resources | |
parent | dca5cb8e40fd2a348a59ea73c597eb742c14c980 (diff) |
Fix `Shader::has_parameter` to return a correct value
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/shader.cpp | 2 |
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 { |