mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Fix spine's crash due to destroy called after animation play complete. (#18342)
This commit is contained in:
@@ -83,6 +83,13 @@ void MiddlewareManager::update(float dt) {
|
||||
}
|
||||
|
||||
void MiddlewareManager::render(float dt) {
|
||||
for (auto &iter: _operateCacheMap) {
|
||||
auto it = std::find(_updateList.begin(), _updateList.end(), iter.first);
|
||||
if (!iter.second && it != _updateList.end()) {
|
||||
_updateList.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
for (auto it : _mbMap) {
|
||||
auto *buffer = it.second;
|
||||
if (buffer) {
|
||||
|
||||
Reference in New Issue
Block a user