Skip to content

Commit

Permalink
Fix spine can not show normally after disable and then active node.
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Dec 11, 2024
1 parent 35d27d6 commit 2586ead
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions native/cocos/editor-support/MiddlewareManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,16 @@ void MiddlewareManager::render(float dt) {
}

void MiddlewareManager::addTimer(IMiddleware *editor) {
auto it0 = std::find(_updateList.begin(), _updateList.end(), editor);
if (it0 != _updateList.end()) {
return;
}

auto it1 = std::find(_removeList.begin(), _removeList.end(), editor);
if (it1 != _removeList.end()) {
_removeList.erase(it1);
}

auto it0 = std::find(_updateList.begin(), _updateList.end(), editor);
if (it0 != _updateList.end()) {
return;
}

_updateList.push_back(editor);
}

Expand Down

0 comments on commit 2586ead

Please sign in to comment.