diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-11 10:54:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-11 10:54:50 +0100 |
commit | a2ad59fb8e77197016ef99f067faf629f8bde8d5 (patch) | |
tree | f54b8d954b4a900e1beb06adf8dba57986d53523 | |
parent | 636d2189d0ec566092c7de2cd5cca31330baef6e (diff) | |
parent | 9d4816fd4a42d825b9f6ad266eaba0a16f5c0f25 (diff) |
Merge pull request #68513 from Chaosus/fix_shader_param
Fix `Shader::has_parameter` to return a correct value
-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 { |