mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +02:00
allow importing of avatar entities from json
This commit is contained in:
parent
cc50bf9b56
commit
ca11d19b3e
1 changed files with 6 additions and 0 deletions
|
@ -1935,6 +1935,12 @@ bool EntityTree::readFromMap(QVariantMap& map) {
|
|||
entityItemID = EntityItemID(QUuid::createUuid());
|
||||
}
|
||||
|
||||
if (properties.getClientOnly()) {
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
const QUuid myNodeID = nodeList->getSessionUUID();
|
||||
properties.setOwningAvatarID(myNodeID);
|
||||
}
|
||||
|
||||
EntityItemPointer entity = addEntity(entityItemID, properties);
|
||||
if (!entity) {
|
||||
qCDebug(entities) << "adding Entity failed:" << entityItemID << properties.getType();
|
||||
|
|
Loading…
Reference in a new issue