Merge pull request #12018 from sethalves/pr-12015-for-rc-61

fix logic that resets own-avatar collisions after a parenting grab is released
This commit is contained in:
John Conklin II 2017-12-19 10:53:01 -08:00 committed by GitHub
commit 09e9707404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1626,6 +1626,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);