mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
fixing th e bug on exit due to the debug anim draw of the avatars
This commit is contained in:
parent
bb99f68d40
commit
acb99592ee
1 changed files with 4 additions and 1 deletions
|
@ -144,6 +144,7 @@ void AnimDebugDraw::shutdown() {
|
|||
if (scene && _itemID) {
|
||||
render::Transaction transaction;
|
||||
transaction.removeItem(_itemID);
|
||||
render::Item::clearID(_itemID);
|
||||
scene->enqueueTransaction(transaction);
|
||||
}
|
||||
}
|
||||
|
@ -316,7 +317,9 @@ void AnimDebugDraw::update() {
|
|||
if (!scene) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!render::Item::isValidID(_itemID)) {
|
||||
return;
|
||||
}
|
||||
render::Transaction transaction;
|
||||
transaction.updateItem<AnimDebugDrawData>(_itemID, [&](AnimDebugDrawData& data) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue