mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 11:13:09 +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();
|
QUuid oldParentID = getParentID();
|
||||||
if (oldParentID != value) {
|
if (oldParentID != value) {
|
||||||
EntityTreePointer tree = getTree();
|
EntityTreePointer tree = getTree();
|
||||||
if (!oldParentID.isNull()) {
|
if (tree && !oldParentID.isNull()) {
|
||||||
tree->removeFromChildrenOfAvatars(getThisPointer());
|
tree->removeFromChildrenOfAvatars(getThisPointer());
|
||||||
}
|
}
|
||||||
SpatiallyNestable::setParentID(value);
|
SpatiallyNestable::setParentID(value);
|
||||||
|
|
Loading…
Reference in a new issue