mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 03:32:42 +02:00
Merge pull request #11873 from sethalves/fix-wearable-domain-change-crash
avoid a crash during domain change while wearing something
This commit is contained in:
commit
6d6ac0a5a9
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