1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

Fix skin editor crashing when pasting with nothing in clipboard

This commit is contained in:
Bartłomiej Dach 2023-11-23 09:55:27 +09:00
parent 4edaaa3083
commit abbcdaa7f7
No known key found for this signature in database

View File

@ -510,6 +510,9 @@ namespace osu.Game.Overlays.SkinEditor
protected void Paste()
{
if (!canPaste.Value)
return;
changeHandler?.BeginChange();
var drawableInfo = JsonConvert.DeserializeObject<SerialisedDrawableInfo[]>(clipboard.Content.Value);