mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +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)
|
willRender: function (camera)
|
||||||
{
|
{
|
||||||
var skeleton = this.skeleton;
|
if (!this.skeleton)
|
||||||
|
|
||||||
if (!skeleton)
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var GameObjectRenderMask = 15;
|
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