Skip to content

Commit

Permalink
engine: fix flashing fade out (fix #1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Oct 8, 2024
1 parent 640e905 commit cb92abd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
qlcplus (4.13.2) stable; urgency=low

* engine: fix flashing fade out
* engine: add stopOnExit, waitFunctionStart and waitFunctionStop commands to Script - see documentation (thanks to ldebs)
* UI/Show Manager: show step notes on the timeline (thanks to anarchid)
* Web Access: fix grand master stopping running functions
Expand Down
10 changes: 5 additions & 5 deletions engine/src/genericfader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,16 +340,16 @@ void GenericFader::setFadeOut(bool enable, uint fadeTime)
{
FadeChannel& fc(it.next().value());

// non-intensity channels (eg LTP) should fade
// to the current universe value
if ((fc.flags() & FadeChannel::Intensity) == 0)
fc.addFlag(FadeChannel::SetTarget);

fc.setStart(fc.current());
// all channels should fade to the current universe value
fc.addFlag(FadeChannel::SetTarget);
fc.setTarget(0);
fc.setElapsed(0);
fc.setReady(false);
fc.setFadeTime(fc.canFade() ? fadeTime : 0);
// if flashing, remove the flag and treat
// it like a regular fade out to target
fc.removeFlag(FadeChannel::Flashing);
}
}

Expand Down

0 comments on commit cb92abd

Please sign in to comment.