Skip to content

Commit

Permalink
Merge branch 'dev' into fix/uniwill
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotr7 authored May 17, 2020
2 parents 97b898a + a2b206a commit 631febc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Project-Aurora/Project-Aurora/Profiles/LightingStateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,19 @@ private void Update()
if (profile.IsEnabled)
UpdateEvent(profile, newFrame);

// Overlay layers
if (!preview || Global.Configuration.OverlaysInPreview) {
foreach (var @event in GetOverlayActiveProfiles())
@event.UpdateOverlayLights(newFrame);

//Add the Light event that we're previewing to be rendered as an overlay (assuming it's not already active)
if (preview && Global.Configuration.OverlaysInPreview && !GetOverlayActiveProfiles().Contains(profile))
profile.UpdateOverlayLights(newFrame);

UpdateIdleEffects(newFrame);
}


Global.effengine.PushFrame(newFrame);

StopUnUpdatedEvents();
Expand Down

0 comments on commit 631febc

Please sign in to comment.