diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-27 21:56:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-27 21:56:14 +0200 |
commit | d3db8bbebddc61d07179bc1acc27853813e7a2a0 (patch) | |
tree | 7deb731fd025f8c80dd362753a9821724aeb6e29 /editor/animation_bezier_editor.cpp | |
parent | c7b5c908814b830ad04c4e54c1e36da3a18aa52c (diff) | |
parent | 4b817a565cab8af648c88cfc7ab6481e86ee3625 (diff) |
Merge pull request #62846 from AaronRecord/remove_redundant_theme_updates_in_enter_tree
Remove `NOTIFICATION_ENTER_TREE` when paired with `NOTIFICATION_THEME_CHANGED`
Diffstat (limited to 'editor/animation_bezier_editor.cpp')
-rw-r--r-- | editor/animation_bezier_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index 9af8b907c4..c121ab42d3 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -216,8 +216,8 @@ void AnimationBezierTrackEdit::_notification(int p_what) { case NOTIFICATION_ENTER_TREE: { panner->setup((ViewPanner::ControlScheme)EDITOR_GET("editors/panning/animation_editors_panning_scheme").operator int(), ED_GET_SHORTCUT("canvas_item_editor/pan_view"), bool(EditorSettings::get_singleton()->get("editors/panning/simple_panning"))); - [[fallthrough]]; - } + } break; + case NOTIFICATION_THEME_CHANGED: { bezier_icon = get_theme_icon(SNAME("KeyBezierPoint"), SNAME("EditorIcons")); bezier_handle_icon = get_theme_icon(SNAME("KeyBezierHandle"), SNAME("EditorIcons")); |