[ts] Closes #699, bug in Skin#attachAll

This commit is contained in:
badlogic 2016-09-26 12:13:18 +02:00
parent 5d3d681d6f
commit 691c33d9a9
11 changed files with 11 additions and 11 deletions

View File

@ -3726,7 +3726,7 @@ var spine;
for (var key in dictionary) { for (var key in dictionary) {
var skinAttachment = dictionary[key]; var skinAttachment = dictionary[key];
if (slotAttachment == skinAttachment) { if (slotAttachment == skinAttachment) {
var attachment = this.getAttachment(slotIndex, name); var attachment = this.getAttachment(slotIndex, key);
if (attachment != null) if (attachment != null)
slot.setAttachment(attachment); slot.setAttachment(attachment);
break; break;

File diff suppressed because one or more lines are too long

View File

@ -3483,7 +3483,7 @@ var spine;
for (var key in dictionary) { for (var key in dictionary) {
var skinAttachment = dictionary[key]; var skinAttachment = dictionary[key];
if (slotAttachment == skinAttachment) { if (slotAttachment == skinAttachment) {
var attachment = this.getAttachment(slotIndex, name); var attachment = this.getAttachment(slotIndex, key);
if (attachment != null) if (attachment != null)
slot.setAttachment(attachment); slot.setAttachment(attachment);
break; break;

File diff suppressed because one or more lines are too long

View File

@ -3483,7 +3483,7 @@ var spine;
for (var key in dictionary) { for (var key in dictionary) {
var skinAttachment = dictionary[key]; var skinAttachment = dictionary[key];
if (slotAttachment == skinAttachment) { if (slotAttachment == skinAttachment) {
var attachment = this.getAttachment(slotIndex, name); var attachment = this.getAttachment(slotIndex, key);
if (attachment != null) if (attachment != null)
slot.setAttachment(attachment); slot.setAttachment(attachment);
break; break;

File diff suppressed because one or more lines are too long

View File

@ -3483,7 +3483,7 @@ var spine;
for (var key in dictionary) { for (var key in dictionary) {
var skinAttachment = dictionary[key]; var skinAttachment = dictionary[key];
if (slotAttachment == skinAttachment) { if (slotAttachment == skinAttachment) {
var attachment = this.getAttachment(slotIndex, name); var attachment = this.getAttachment(slotIndex, key);
if (attachment != null) if (attachment != null)
slot.setAttachment(attachment); slot.setAttachment(attachment);
break; break;

File diff suppressed because one or more lines are too long

View File

@ -3483,7 +3483,7 @@ var spine;
for (var key in dictionary) { for (var key in dictionary) {
var skinAttachment = dictionary[key]; var skinAttachment = dictionary[key];
if (slotAttachment == skinAttachment) { if (slotAttachment == skinAttachment) {
var attachment = this.getAttachment(slotIndex, name); var attachment = this.getAttachment(slotIndex, key);
if (attachment != null) if (attachment != null)
slot.setAttachment(attachment); slot.setAttachment(attachment);
break; break;

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,7 @@ module spine {
for (let key in dictionary) { for (let key in dictionary) {
let skinAttachment:Attachment = dictionary[key]; let skinAttachment:Attachment = dictionary[key];
if (slotAttachment == skinAttachment) { if (slotAttachment == skinAttachment) {
let attachment = this.getAttachment(slotIndex, name); let attachment = this.getAttachment(slotIndex, key);
if (attachment != null) slot.setAttachment(attachment); if (attachment != null) slot.setAttachment(attachment);
break; break;
} }