Clear gfx on stop all

This commit is contained in:
Paul Kaplan 2017-03-06 15:54:52 -05:00
parent bf2303f6de
commit 5b82096670

View file

@ -706,9 +706,10 @@ RenderedTarget.prototype.onGreenFlag = function () {
/**
* Called when the project receives a "stop all"
* Stop all sounds
* Stop all sounds and clear graphic effects.
*/
RenderedTarget.prototype.onStopAll = function () {
this.clearEffects();
if (this.audioPlayer) {
this.audioPlayer.stopAllSounds();
this.audioPlayer.clearEffects();