[ts] Ported active bone check in SkeletonBounds. See #1378.

This commit is contained in:
badlogic 2019-06-11 15:27:45 +02:00
parent ad6ed0911c
commit c1b4b7ea7d
13 changed files with 19 additions and 6 deletions

View File

@ -4850,6 +4850,8 @@ var spine;
polygons.length = 0;
for (var i = 0; i < slotCount; i++) {
var slot = slots[i];
if (!slot.bone.active)
continue;
var attachment = slot.getAttachment();
if (attachment instanceof spine.BoundingBoxAttachment) {
var boundingBox = attachment;

File diff suppressed because one or more lines are too long

View File

@ -4850,6 +4850,8 @@ var spine;
polygons.length = 0;
for (var i = 0; i < slotCount; i++) {
var slot = slots[i];
if (!slot.bone.active)
continue;
var attachment = slot.getAttachment();
if (attachment instanceof spine.BoundingBoxAttachment) {
var boundingBox = attachment;

File diff suppressed because one or more lines are too long

View File

@ -4850,6 +4850,8 @@ var spine;
polygons.length = 0;
for (var i = 0; i < slotCount; i++) {
var slot = slots[i];
if (!slot.bone.active)
continue;
var attachment = slot.getAttachment();
if (attachment instanceof spine.BoundingBoxAttachment) {
var boundingBox = attachment;

File diff suppressed because one or more lines are too long

View File

@ -4850,6 +4850,8 @@ var spine;
polygons.length = 0;
for (var i = 0; i < slotCount; i++) {
var slot = slots[i];
if (!slot.bone.active)
continue;
var attachment = slot.getAttachment();
if (attachment instanceof spine.BoundingBoxAttachment) {
var boundingBox = attachment;

File diff suppressed because one or more lines are too long

View File

@ -4850,6 +4850,8 @@ var spine;
polygons.length = 0;
for (var i = 0; i < slotCount; i++) {
var slot = slots[i];
if (!slot.bone.active)
continue;
var attachment = slot.getAttachment();
if (attachment instanceof spine.BoundingBoxAttachment) {
var boundingBox = attachment;

File diff suppressed because one or more lines are too long

View File

@ -4850,6 +4850,8 @@ var spine;
polygons.length = 0;
for (var i = 0; i < slotCount; i++) {
var slot = slots[i];
if (!slot.bone.active)
continue;
var attachment = slot.getAttachment();
if (attachment instanceof spine.BoundingBoxAttachment) {
var boundingBox = attachment;

File diff suppressed because one or more lines are too long

View File

@ -50,6 +50,7 @@ module spine {
for (let i = 0; i < slotCount; i++) {
let slot = slots[i];
if (!slot.bone.active) continue;
let attachment = slot.getAttachment();
if (attachment instanceof BoundingBoxAttachment) {
let boundingBox = attachment as BoundingBoxAttachment;