Enforce this on Container children only

This commit is contained in:
Richard Davey 2020-12-11 13:19:26 +00:00
parent 1d56c360af
commit 297c44595a

View file

@ -259,7 +259,7 @@ var SpineGameObject = new Class({
var result = (!this.skeleton || !(GameObjectRenderMask !== this.renderFlags || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id)))); var result = (!this.skeleton || !(GameObjectRenderMask !== this.renderFlags || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id))));
if (!container && !result) if (!container && !result && this.parentContainer)
{ {
var plugin = this.plugin; var plugin = this.plugin;
var sceneRenderer = plugin.sceneRenderer; var sceneRenderer = plugin.sceneRenderer;