1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Merge pull request #17218 from peppy/skin-editor-target-other-containers

Allow skin editor to target different target containers for placement purposes
This commit is contained in:
Dan Balasescu 2022-03-14 17:40:41 +09:00 committed by GitHub
commit 75470730cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,12 @@ namespace osu.Game.Skinning.Editor
private void placeComponent(Type type)
{
var targetContainer = getTarget(SkinnableTarget.MainHUDComponents);
var target = availableTargets.FirstOrDefault()?.Target;
if (target == null)
return;
var targetContainer = getTarget(target.Value);
if (targetContainer == null)
return;