Rename left-over skinnable naming in SerialisedDrawableExtensions

This commit is contained in:
Dean Herbert 2023-02-16 15:34:41 +09:00
parent 76f7accd13
commit 81dcc105a9

View File

@ -22,9 +22,9 @@ namespace osu.Game.Skinning
component.Anchor = drawableInfo.Anchor; component.Anchor = drawableInfo.Anchor;
component.Origin = drawableInfo.Origin; component.Origin = drawableInfo.Origin;
if (component is ISerialisableDrawable skinnable) if (component is ISerialisableDrawable serialisableDrawable)
{ {
skinnable.UsesFixedAnchor = drawableInfo.UsesFixedAnchor; serialisableDrawable.UsesFixedAnchor = drawableInfo.UsesFixedAnchor;
foreach (var (_, property) in component.GetSettingsSourceProperties()) foreach (var (_, property) in component.GetSettingsSourceProperties())
{ {
@ -37,7 +37,7 @@ namespace osu.Game.Skinning
continue; continue;
} }
skinnable.CopyAdjustedSetting(bindable, settingValue); serialisableDrawable.CopyAdjustedSetting(bindable, settingValue);
} }
} }