mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 21:33:00 +02:00
Merge pull request #12015 from sethalves/fix-av-collision-after-grab
fix logic that resets own-avatar collisions after a parenting grab is released
This commit is contained in:
commit
d4e44fec56
1 changed files with 4 additions and 0 deletions
|
@ -1634,6 +1634,10 @@ void EntityItem::setParentID(const QUuid& value) {
|
|||
newParentNoBootstrapping |= Simulation::NO_BOOTSTRAPPING;
|
||||
}
|
||||
|
||||
if (!oldParentID.isNull() && (oldParentID == Physics::getSessionUUID() || oldParentID == AVATAR_SELF_ID)) {
|
||||
oldParentNoBootstrapping |= Simulation::NO_BOOTSTRAPPING;
|
||||
}
|
||||
|
||||
if ((bool)(oldParentNoBootstrapping ^ newParentNoBootstrapping)) {
|
||||
if ((bool)(newParentNoBootstrapping & Simulation::NO_BOOTSTRAPPING)) {
|
||||
markDirtyFlags(Simulation::NO_BOOTSTRAPPING);
|
||||
|
|
Loading…
Reference in a new issue