1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Remove unnecessary guard

Setting a bindable's value to something if that value is already there
is a no-op (doesn't trigger bindings / callbacks).
This commit is contained in:
Bartłomiej Dach 2023-11-20 21:29:19 +09:00
parent 0e0ab66148
commit 246aacb216
No known key found for this signature in database

View File

@ -1172,8 +1172,7 @@ namespace osu.Game.Screens.Edit
clock.SeekSmoothlyTo(position);
if (Mode.Value != EditorScreenMode.Compose)
Mode.Value = EditorScreenMode.Compose;
Mode.Value = EditorScreenMode.Compose;
// Delegate handling the selection to the ruleset.
currentScreen.Dependencies.Get<HitObjectComposer>().SelectHitObjects(position, selection);