diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-15 20:48:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 20:48:18 +0100 |
commit | 98b97d34df7f3ab2cafc3847358c231c3d357b40 (patch) | |
tree | 431aa6f107e860aa1e1f4ae8864f9b06e8ace169 /scene/2d/multimesh_instance_2d.cpp | |
parent | 6d575873969609e6ed58dee5052d23512b104498 (diff) | |
parent | 0f5455230c8955be0c6533574bd3d5b6f50792b6 (diff) |
Merge pull request #58151 from akien-mga/notification-switch-scene
Diffstat (limited to 'scene/2d/multimesh_instance_2d.cpp')
-rw-r--r-- | scene/2d/multimesh_instance_2d.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scene/2d/multimesh_instance_2d.cpp b/scene/2d/multimesh_instance_2d.cpp index e1af99d931..8f72ff1757 100644 --- a/scene/2d/multimesh_instance_2d.cpp +++ b/scene/2d/multimesh_instance_2d.cpp @@ -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; } } |