Browse Source

setToSetupPose for meshes.

NathanSweet 11 years ago
parent
commit
99cb5cae09
1 changed files with 1 additions and 2 deletions
  1. 1 2
      spine-libgdx/src/com/esotericsoftware/spine/Slot.java

+ 1 - 2
spine-libgdx/src/com/esotericsoftware/spine/Slot.java

@@ -102,7 +102,7 @@ public class Slot {
 		if (this.attachment == attachment) return;
 		if (this.attachment == attachment) return;
 		this.attachment = attachment;
 		this.attachment = attachment;
 		attachmentTime = skeleton.time;
 		attachmentTime = skeleton.time;
-		// attachmentVertices.clear(); // BOZO - Should this be here?
+		attachmentVertices.clear();
 	}
 	}
 
 
 	public void setAttachmentTime (float time) {
 	public void setAttachmentTime (float time) {
@@ -125,7 +125,6 @@ public class Slot {
 	void setToSetupPose (int slotIndex) {
 	void setToSetupPose (int slotIndex) {
 		color.set(data.color);
 		color.set(data.color);
 		setAttachment(data.attachmentName == null ? null : skeleton.getAttachment(slotIndex, data.attachmentName));
 		setAttachment(data.attachmentName == null ? null : skeleton.getAttachment(slotIndex, data.attachmentName));
-		// BOZO - Set mesh to setup pose.
 		attachmentVertices.clear();
 		attachmentVertices.clear();
 	}
 	}