mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 21:29:07 +08:00
Fixed attachAll.
This commit is contained in:
parent
4a03850829
commit
fa0267e9e2
@ -33,7 +33,7 @@ public class Skin {
|
|||||||
|
|
||||||
/** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
|
/** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
|
||||||
public function attachAll (skeleton:Skeleton, oldSkin:Skin) : void {
|
public function attachAll (skeleton:Skeleton, oldSkin:Skin) : void {
|
||||||
for each (var key:String in oldSkin.attachments) {
|
for (var key:String in oldSkin.attachments) {
|
||||||
var colon:int = key.indexOf(":");
|
var colon:int = key.indexOf(":");
|
||||||
var slotIndex:int = parseInt(key.substring(0, colon));
|
var slotIndex:int = parseInt(key.substring(0, colon));
|
||||||
var name:String = key.substring(colon + 1);
|
var name:String = key.substring(colon + 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user