mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Don't check skeleton alpha, use flags instead.
This commit is contained in:
parent
552c2a15a6
commit
ce3645cbb2
1 changed files with 2 additions and 5 deletions
|
@ -252,17 +252,14 @@ var SpineGameObject = new Class({
|
|||
*/
|
||||
willRender: function (camera)
|
||||
{
|
||||
var skeleton = this.skeleton;
|
||||
|
||||
if (!skeleton)
|
||||
if (!this.skeleton)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var GameObjectRenderMask = 15;
|
||||
var childAlpha = skeleton.color.a;
|
||||
|
||||
return !(GameObjectRenderMask !== this.renderFlags || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id)) || childAlpha === 0);
|
||||
return !(GameObjectRenderMask !== this.renderFlags || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id)));
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue