mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
fix spatially nestable parent overwrite
This commit is contained in:
parent
9e862ba55b
commit
a7e28f7a66
1 changed files with 3 additions and 0 deletions
|
@ -489,6 +489,9 @@ void OtherAvatar::handleChangedAvatarEntityData() {
|
||||||
bool success = true;
|
bool success = true;
|
||||||
if (entity) {
|
if (entity) {
|
||||||
QUuid oldParentID = entity->getParentID();
|
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)) {
|
if (entityTree->updateEntity(entityID, properties)) {
|
||||||
entity->updateLastEditedFromRemote();
|
entity->updateLastEditedFromRemote();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue