mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Use switch consistently in _notification (scene folder)
This commit is contained in:
@@ -29,13 +29,16 @@
|
||||
/*************************************************************************/
|
||||
|
||||
#include "multimesh_instance_2d.h"
|
||||
|
||||
#include "scene/scene_string_names.h"
|
||||
|
||||
void MultiMeshInstance2D::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_DRAW) {
|
||||
if (multimesh.is_valid()) {
|
||||
draw_multimesh(multimesh, texture);
|
||||
}
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_DRAW: {
|
||||
if (multimesh.is_valid()) {
|
||||
draw_multimesh(multimesh, texture);
|
||||
}
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user