Set attachmentVerticesCount to zero.

This commit is contained in:
NathanSweet 2014-09-23 20:18:14 +02:00
parent bffdfb9cb7
commit 3c7a83d95c
2 changed files with 4 additions and 3 deletions

View File

@ -51,11 +51,12 @@ void spSlot_dispose (spSlot* self) {
void spSlot_setAttachment (spSlot* self, spAttachment* attachment) {
CONST_CAST(spAttachment*, self->attachment) = attachment;
SUB_CAST(_spSlot, self) ->attachmentTime = self->bone->skeleton->time;
SUB_CAST(_spSlot, self)->attachmentTime = self->bone->skeleton->time;
self->attachmentVerticesCount = 0;
}
void spSlot_setAttachmentTime (spSlot* self, float time) {
SUB_CAST(_spSlot, self) ->attachmentTime = self->bone->skeleton->time - time;
SUB_CAST(_spSlot, self)->attachmentTime = self->bone->skeleton->time - time;
}
float spSlot_getAttachmentTime (const spSlot* self) {
@ -64,6 +65,7 @@ float spSlot_getAttachmentTime (const spSlot* self) {
void spSlot_setToSetupPose (spSlot* self) {
spAttachment* attachment = 0;
self->r = self->data->r;
self->g = self->data->g;
self->b = self->data->b;

View File

@ -119,7 +119,6 @@ public class Slot {
void setToSetupPose (int slotIndex) {
color.set(data.color);
setAttachment(data.attachmentName == null ? null : bone.skeleton.getAttachment(slotIndex, data.attachmentName));
attachmentVertices.clear();
}
public void setToSetupPose () {