Skip to content

Commit

Permalink
Merge pull request UnderminersTeam#1526 from Jacky720/assetlayerfix
Browse files Browse the repository at this point in the history
Create ParticleSystems list on asset layers
  • Loading branch information
colinator27 authored Nov 17, 2023
2 parents 64527e5 + 2ebb5b3 commit a8ae767
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,9 @@ public void Command_Paste(object sender, ExecutedRoutedEventArgs e)
// if it's needed to set "NineSlices"
if (!data.IsVersionAtLeast(2, 3, 2))
layer.AssetsData.NineSlices ??= new UndertalePointerList<SpriteInstance>();
// likewise
if (data.IsVersionAtLeast(2023, 2))
layer.AssetsData.ParticleSystems ??= new UndertalePointerList<ParticleSystemInstance>();
}
else if (layer.LayerType == LayerType.Tiles)
{
Expand Down

0 comments on commit a8ae767

Please sign in to comment.