mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Merge pull request #2739 from samme/issue-2738
Test for `camera.fx` before resetting
This commit is contained in:
commit
07994c37a1
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue