From ffbb211bbe5d4c7cad881d9c34bccf0978226d1f 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() --- 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 4ca8032d653..42495425676 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -125,7 +125,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 {