mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 22:15:53 +02:00
fix a crash in RenderableModelEntityItem::getModel
This commit is contained in:
parent
88ab52d340
commit
16bf59f8a6
1 changed files with 6 additions and 4 deletions
|
@ -1459,10 +1459,12 @@ void EntityTree::trackIncomingEntityLastEdited(quint64 lastEditedTime, int bytes
|
|||
|
||||
void EntityTree::callLoader(EntityItemID entityID) {
|
||||
// this is used to bounce from the networking thread to the main thread
|
||||
EntityItemPointer entity = findEntityByEntityItemID(entityID);
|
||||
if (entity) {
|
||||
entity->loader();
|
||||
}
|
||||
this->withWriteLock([&] {
|
||||
EntityItemPointer entity = findEntityByEntityItemID(entityID);
|
||||
if (entity) {
|
||||
entity->loader();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
int EntityTree::getJointIndex(const QUuid& entityID, const QString& name) const {
|
||||
|
|
Loading…
Reference in a new issue