Use switch consistently in _notification (scene folder)

This commit is contained in:
Rémi Verschelde
2022-02-15 18:06:48 +01:00
parent 171021145d
commit 0f5455230c
127 changed files with 2853 additions and 2601 deletions

View File

@@ -29,13 +29,16 @@
/*************************************************************************/
#include "mesh_instance_2d.h"
#include "scene/scene_string_names.h"
void MeshInstance2D::_notification(int p_what) {
if (p_what == NOTIFICATION_DRAW) {
if (mesh.is_valid()) {
draw_mesh(mesh, texture);
}
switch (p_what) {
case NOTIFICATION_DRAW: {
if (mesh.is_valid()) {
draw_mesh(mesh, texture);
}
} break;
}
}