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:
John Conklin II 2017-12-19 07:01:37 -08:00 committed by GitHub
commit d4e44fec56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);