mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Set attachmentVerticesCount to zero.
This commit is contained in:
parent
bffdfb9cb7
commit
3c7a83d95c
@ -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;
|
||||
|
||||
@ -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 () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user