mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:52:26 +02:00
fix logic that resets own-avatar collisions after a parenting grab is released
This commit is contained in:
parent
3a55fcfaf5
commit
ca45c4e8da
1 changed files with 4 additions and 0 deletions
|
@ -1634,6 +1634,10 @@ void EntityItem::setParentID(const QUuid& value) {
|
||||||
newParentNoBootstrapping |= Simulation::NO_BOOTSTRAPPING;
|
newParentNoBootstrapping |= Simulation::NO_BOOTSTRAPPING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!oldParentID.isNull() && (oldParentID == Physics::getSessionUUID() || oldParentID == AVATAR_SELF_ID)) {
|
||||||
|
oldParentNoBootstrapping |= Simulation::NO_BOOTSTRAPPING;
|
||||||
|
}
|
||||||
|
|
||||||
if ((bool)(oldParentNoBootstrapping ^ newParentNoBootstrapping)) {
|
if ((bool)(oldParentNoBootstrapping ^ newParentNoBootstrapping)) {
|
||||||
if ((bool)(newParentNoBootstrapping & Simulation::NO_BOOTSTRAPPING)) {
|
if ((bool)(newParentNoBootstrapping & Simulation::NO_BOOTSTRAPPING)) {
|
||||||
markDirtyFlags(Simulation::NO_BOOTSTRAPPING);
|
markDirtyFlags(Simulation::NO_BOOTSTRAPPING);
|
||||||
|
|
Loading…
Reference in a new issue