Skip to content

Commit

Permalink
Merge pull request #27832 from peppy/skin-editor-new-items-apply
Browse files Browse the repository at this point in the history
Fix newly placed items in skin editor not getting correct anchor placement
  • Loading branch information
smoogipoo authored Apr 12, 2024
2 parents da1a07f + c0dce94 commit 3793a55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions osu.Game/Overlays/SkinEditor/SkinEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ private bool placeComponent(ISerialisableDrawable component, bool applyDefaults
}

SelectedComponents.Add(component);
SkinSelectionHandler.ApplyClosestAnchor(drawableComponent);
return true;
}

Expand Down Expand Up @@ -666,8 +667,6 @@ public Task Import(params string[] paths)
SelectedComponents.Clear();
placeComponent(sprite, false);
SkinSelectionHandler.ApplyClosestAnchor(sprite);
});

return Task.CompletedTask;
Expand Down

0 comments on commit 3793a55

Please sign in to comment.