Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Nov 8, 2023
1 parent 9ef9054 commit 6e042cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SpineSkeletonInstance {
TrackEntry *setAnimation(float trackIndex, const std::string &name, bool loop);
void setSkin(const std::string &name);
void updateAnimation(float dltTime);
void preUpdateRenderData();
// void preUpdateRenderData();
SpineModel *updateRenderData();
void setPremultipliedAlpha(bool val);
void setUseTint(bool useTint);
Expand Down
14 changes: 7 additions & 7 deletions native/cocos/editor-support/spine-wasm/spine-skeleton-system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ int SpineSkeletonSystem::getCount() {

void SpineSkeletonSystem::updateRenderData() {
SpineMeshData::reset();
auto count = vectorSpines.size();
for (size_t i = 0; i < count; ++i) {
SpineSkeletonInstance* spineInstance = vectorSpines[i];
if (!spineInstance->isCache) {
spineInstance->preUpdateRenderData();
}
}
// auto count = vectorSpines.size();
// for (size_t i = 0; i < count; ++i) {
// SpineSkeletonInstance* spineInstance = vectorSpines[i];
// if (!spineInstance->isCache) {
// spineInstance->preUpdateRenderData();
// }
// }
}

void SpineSkeletonSystem::addSpineInstance(SpineSkeletonInstance* instance) {
Expand Down

0 comments on commit 6e042cb

Please sign in to comment.