mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
This commit is contained in:
committed by
AThousandShips
parent
0f95e9f8e6
commit
a1846b27ea
@@ -211,7 +211,7 @@ void MultiMesh::set_buffer_interpolated(const Vector<float> &p_buffer_curr, cons
|
||||
|
||||
void MultiMesh::set_mesh(const Ref<Mesh> &p_mesh) {
|
||||
mesh = p_mesh;
|
||||
if (!mesh.is_null()) {
|
||||
if (mesh.is_valid()) {
|
||||
RenderingServer::get_singleton()->multimesh_set_mesh(multimesh, mesh->get_rid());
|
||||
} else {
|
||||
RenderingServer::get_singleton()->multimesh_set_mesh(multimesh, RID());
|
||||
|
||||
Reference in New Issue
Block a user