Merge pull request #4760 from rexrainbow/blitter-enhancement

Set dirty flag only when render state of bob is changed
This commit is contained in:
Richard Davey 2019-09-26 12:32:34 +01:00 committed by GitHub
commit f3e18000f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}