another AVATAR_SELF_ID adjustment

This commit is contained in:
Seth Alves 2017-02-03 16:47:03 -08:00
parent ad83f20199
commit 81bf5ee655

View file

@ -1828,7 +1828,8 @@ void EntityItem::computeCollisionGroupAndFinalMask(int16_t& group, int16_t& mask
// "bootstrapping" problem where you can shoot yourself across the room by grabbing something
// and holding it against your own avatar.
QUuid ancestorID = findAncestorOfType(NestableType::Avatar);
if (!ancestorID.isNull() && ancestorID == Physics::getSessionUUID()) {
if (!ancestorID.isNull() &&
(ancestorID == Physics::getSessionUUID() || ancestorID == AVATAR_SELF_ID)) {
userMask &= ~USER_COLLISION_GROUP_MY_AVATAR;
}
}