Merge pull request #2739 from samme/issue-2738

Test for `camera.fx` before resetting
This commit is contained in:
Richard Davey 2016-09-07 23:12:00 +01:00 committed by GitHub
commit 07994c37a1

View file

@ -784,9 +784,10 @@ Phaser.Camera.prototype = {
*/ */
resetFX: function () { resetFX: function () {
this.fx.clear(); if (this.fx) {
this.fx.clear();
this.fx.alpha = 0; this.fx.alpha = 0;
}
this._fxDuration = 0; this._fxDuration = 0;