1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Fix LayerEffect order double variable assignment

This fixes the accidental double assignment of the LayerEffect order messing up more complex profiles.
Closes #669
This commit is contained in:
Tony Langhammer 2022-06-28 22:21:27 +02:00 committed by GitHub
parent 1c2fe904b7
commit 16c6447bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,7 @@ namespace Artemis.Core
int index = 0;
foreach (BaseLayerEffect baseLayerEffect in LayerEffects.OrderBy(e => e.Order))
{
baseLayerEffect.Order = Order = index + 1;
baseLayerEffect.Order = index + 1;
index++;
}