mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-18 12:06:13 +02:00
fix spatially nestable parent overwrite
This commit is contained in:
parent
8faff57033
commit
50dd865bdc
1 changed files with 3 additions and 0 deletions
|
@ -489,6 +489,9 @@ void OtherAvatar::handleChangedAvatarEntityData() {
|
|||
bool success = true;
|
||||
if (entity) {
|
||||
QUuid oldParentID = entity->getParentID();
|
||||
const QUuid NULL_ID = QUuid("{00000000-0000-0000-0000-000000000005}");
|
||||
entity->setParentID(NULL_ID);
|
||||
entity->setParentID(oldParentID);
|
||||
if (entityTree->updateEntity(entityID, properties)) {
|
||||
entity->updateLastEditedFromRemote();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue