mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Merge pull request #4760 from rexrainbow/blitter-enhancement
Set dirty flag only when render state of bob is changed
This commit is contained in:
commit
f3e18000f2
1 changed files with 2 additions and 2 deletions
|
@ -343,8 +343,8 @@ var Bob = new Class({
|
|||
|
||||
set: function (value)
|
||||
{
|
||||
this.parent.dirty |= (this._visible !== value);
|
||||
this._visible = value;
|
||||
this.parent.dirty = true;
|
||||
}
|
||||
|
||||
},
|
||||
|
@ -367,8 +367,8 @@ var Bob = new Class({
|
|||
|
||||
set: function (value)
|
||||
{
|
||||
this.parent.dirty |= ((this._alpha > 0) !== (value > 0));
|
||||
this._alpha = value;
|
||||
this.parent.dirty = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue