mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 03:34:17 +00:00
Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
This commit is contained in:
parent
0f95e9f8e6
commit
a1846b27ea
177 changed files with 517 additions and 519 deletions
|
|
@ -8104,7 +8104,7 @@ RID RenderingDevice::_uniform_set_create(const TypedArray<RDUniform> &p_uniforms
|
|||
uniforms.resize(p_uniforms.size());
|
||||
for (int i = 0; i < p_uniforms.size(); i++) {
|
||||
Ref<RDUniform> uniform = p_uniforms[i];
|
||||
ERR_FAIL_COND_V(!uniform.is_valid(), RID());
|
||||
ERR_FAIL_COND_V(uniform.is_null(), RID());
|
||||
uniforms.write[i] = uniform->base;
|
||||
}
|
||||
return uniform_set_create(uniforms, p_shader, p_shader_set);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue