From f561c7f22d457f9dafde01fc036da5e176544774 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Thu, 21 Dec 2023 17:02:32 +0100 Subject: [PATCH] Make slight optimization. Co-authored-by: Vladislav Stepanov --- UndertaleModTool/Controls/UndertaleRoomRenderer.xaml.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/UndertaleModTool/Controls/UndertaleRoomRenderer.xaml.cs b/UndertaleModTool/Controls/UndertaleRoomRenderer.xaml.cs index 4b5e9d1d7..60ae220f2 100644 --- a/UndertaleModTool/Controls/UndertaleRoomRenderer.xaml.cs +++ b/UndertaleModTool/Controls/UndertaleRoomRenderer.xaml.cs @@ -66,9 +66,8 @@ private void RoomRenderer_DataContextChanged(object sender, DependencyPropertyCh { if (layer.AssetsData.ParticleSystems is not null) { - var particleSystems = Enumerable.Empty(); - particleSystems = layer.AssetsData.ParticleSystems.Select(x => x.ParticleSystem); - ParticleSystemRectConverter.Initialize(particleSystems); + var particleSystems = layer.AssetsData.ParticleSystems.Select(x => x.ParticleSystem); + ParticleSystemRectConverter.Initialize(particleSystems); } }