mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 23:55:14 +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) {
|
void EntityScriptingInterface::onAddingEntity(EntityItem* entity) {
|
||||||
if (entity->isWearable()) {
|
if (entity->isWearable()) {
|
||||||
emit addingWearable(entity->getEntityItemID());
|
QMetaObject::invokeMethod(this, "addingWearable", Q_ARG(QUuid, entity->getEntityItemID()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityScriptingInterface::onDeletingEntity(EntityItem* entity) {
|
void EntityScriptingInterface::onDeletingEntity(EntityItem* entity) {
|
||||||
if (entity->isWearable()) {
|
if (entity->isWearable()) {
|
||||||
emit deletingWearable(entity->getEntityItemID());
|
QMetaObject::invokeMethod(this, "deletingWearable", Q_ARG(QUuid, entity->getEntityItemID()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue