diff options
author | megalobyte <megalobyte@protonmail.com> | 2022-02-15 21:44:22 -0500 |
---|---|---|
committer | megalobyte <megalobyte@protonmail.com> | 2022-02-16 08:44:37 -0500 |
commit | 8824b6c5e9dc6a24a17452ded0c800ec267f812f (patch) | |
tree | 9902ce6e7a98f5deb6639b25c7e8d16354629889 /editor/plugins/cpu_particles_3d_editor_plugin.cpp | |
parent | 98b97d34df7f3ab2cafc3847358c231c3d357b40 (diff) | |
download | redot-engine-8824b6c5e9dc6a24a17452ded0c800ec267f812f.tar.gz |
Update if == NOTIFICATION_* to switch statements to match coding style
Diffstat (limited to 'editor/plugins/cpu_particles_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/cpu_particles_3d_editor_plugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/plugins/cpu_particles_3d_editor_plugin.cpp b/editor/plugins/cpu_particles_3d_editor_plugin.cpp index 046a48337a..775c2dbb2a 100644 --- a/editor/plugins/cpu_particles_3d_editor_plugin.cpp +++ b/editor/plugins/cpu_particles_3d_editor_plugin.cpp @@ -43,8 +43,10 @@ void CPUParticles3DEditor::_node_removed(Node *p_node) { } void CPUParticles3DEditor::_notification(int p_notification) { - if (p_notification == NOTIFICATION_ENTER_TREE) { - options->set_icon(get_theme_icon(SNAME("CPUParticles3D"), SNAME("EditorIcons"))); + switch (p_notification) { + case NOTIFICATION_ENTER_TREE: { + options->set_icon(get_theme_icon(SNAME("CPUParticles3D"), SNAME("EditorIcons"))); + } break; } } |