mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
Merge branch 'master' into spine-ue4
This commit is contained in:
commit
e8f13f4c3a
@ -142,7 +142,7 @@ void _spEventQueue_drain (_spEventQueue* self) {
|
||||
if (self->drainDisabled) return;
|
||||
self->drainDisabled = 1;
|
||||
for (i = 0; i < self->objectsCount; i += 2) {
|
||||
spEventType type = self->objects[i].type;
|
||||
spEventType type = (spEventType)self->objects[i].type;
|
||||
spTrackEntry* entry = self->objects[i+1].entry;
|
||||
spEvent* event;
|
||||
switch (type) {
|
||||
|
||||
@ -161,7 +161,7 @@ static void _addToUpdateCache(_spSkeleton* const internal, _spUpdateType type, v
|
||||
_spUpdate* update;
|
||||
if (internal->updateCacheCount == internal->updateCacheCapacity) {
|
||||
internal->updateCacheCapacity *= 2;
|
||||
internal->updateCache = realloc(internal->updateCache, sizeof(_spUpdate) * internal->updateCacheCapacity);
|
||||
internal->updateCache = (_spUpdate*)realloc(internal->updateCache, sizeof(_spUpdate) * internal->updateCacheCapacity);
|
||||
}
|
||||
update = internal->updateCache + internal->updateCacheCount;
|
||||
update->type = type;
|
||||
@ -172,7 +172,7 @@ static void _addToUpdateCache(_spSkeleton* const internal, _spUpdateType type, v
|
||||
static void _addToUpdateCacheReset(_spSkeleton* const internal, spBone* bone) {
|
||||
if (internal->updateCacheResetCount == internal->updateCacheResetCapacity) {
|
||||
internal->updateCacheResetCapacity *= 2;
|
||||
internal->updateCacheReset = realloc(internal->updateCacheReset, sizeof(spBone*) * internal->updateCacheResetCapacity);
|
||||
internal->updateCacheReset = (spBone**)realloc(internal->updateCacheReset, sizeof(spBone*) * internal->updateCacheResetCapacity);
|
||||
}
|
||||
internal->updateCacheReset[internal->updateCacheResetCount] = bone;
|
||||
++internal->updateCacheResetCount;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user