Skip to content

Commit

Permalink
Make slight optimization.
Browse files Browse the repository at this point in the history
Co-authored-by: Vladislav Stepanov <[email protected]>
  • Loading branch information
Miepee and VladiStep authored Dec 21, 2023
1 parent 93f1ad8 commit f561c7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions UndertaleModTool/Controls/UndertaleRoomRenderer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ private void RoomRenderer_DataContextChanged(object sender, DependencyPropertyCh
{
if (layer.AssetsData.ParticleSystems is not null)
{
var particleSystems = Enumerable.Empty<UndertaleParticleSystem>();
particleSystems = layer.AssetsData.ParticleSystems.Select(x => x.ParticleSystem);
ParticleSystemRectConverter.Initialize(particleSystems);
var particleSystems = layer.AssetsData.ParticleSystems.Select(x => x.ParticleSystem);
ParticleSystemRectConverter.Initialize(particleSystems);
}

}
Expand Down

0 comments on commit f561c7f

Please sign in to comment.