From ae67ec3ece3d4355c8fb9a3c2cc4a0d97910947d Mon Sep 17 00:00:00 2001 From: Marcus Brummer Date: Thu, 4 Jun 2020 17:41:10 +0200 Subject: [PATCH] Set "shader_param/" prefix in Shader::has_param() (cherry picked from commit ffbb211bbe5d4c7cad881d9c34bccf0978226d1f) --- scene/resources/shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp index 87e5f217d15..8e310b6fa9b 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -154,7 +154,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 {