mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 15:30:11 +02:00
avoid a crash during domain change
This commit is contained in:
parent
e20555bf38
commit
9ccc416e80
1 changed files with 1 additions and 1 deletions
|
@ -1602,7 +1602,7 @@ void EntityItem::setParentID(const QUuid& value) {
|
|||
QUuid oldParentID = getParentID();
|
||||
if (oldParentID != value) {
|
||||
EntityTreePointer tree = getTree();
|
||||
if (!oldParentID.isNull()) {
|
||||
if (tree && !oldParentID.isNull()) {
|
||||
tree->removeFromChildrenOfAvatars(getThisPointer());
|
||||
}
|
||||
SpatiallyNestable::setParentID(value);
|
||||
|
|
Loading…
Reference in a new issue