mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 12:02:25 +02:00
avoid a deadlock when code invoked by onAddingEntity or onDeletingEntity runs more code that locks the entity tree
This commit is contained in:
parent
fa36f12145
commit
5695c15809
1 changed files with 2 additions and 2 deletions
|
@ -1101,13 +1101,13 @@ void EntityScriptingInterface::handleEntityScriptCallMethodPacket(QSharedPointer
|
|||
|
||||
void EntityScriptingInterface::onAddingEntity(EntityItem* entity) {
|
||||
if (entity->isWearable()) {
|
||||
emit addingWearable(entity->getEntityItemID());
|
||||
QMetaObject::invokeMethod(this, "addingWearable", Q_ARG(QUuid, entity->getEntityItemID()));
|
||||
}
|
||||
}
|
||||
|
||||
void EntityScriptingInterface::onDeletingEntity(EntityItem* entity) {
|
||||
if (entity->isWearable()) {
|
||||
emit deletingWearable(entity->getEntityItemID());
|
||||
QMetaObject::invokeMethod(this, "deletingWearable", Q_ARG(QUuid, entity->getEntityItemID()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue