mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix Shader::has_parameter
to return a correct value
This commit is contained in:
parent
dca5cb8e40
commit
9d4816fd4a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user