From 9d4816fd4a42d825b9f6ad266eaba0a16f5c0f25 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Fri, 11 Nov 2022 11:27:32 +0300 Subject: Fix `Shader::has_parameter` to return a correct value --- scene/resources/shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') 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 { -- cgit v1.2.3