Merge pull request #9494 from sethalves/tablet-ui

fix near-grab to equip handoff
This commit is contained in:
Seth Alves 2017-01-24 11:39:56 -08:00 committed by GitHub
commit e0779db1ab

View file

@ -235,6 +235,11 @@ void AvatarActionHold::doKinematicUpdate(float deltaTimeStep) {
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning entity";
return;
}
if (ownerEntity->getParentID() != QUuid()) {
// if the held entity has been given a parent, stop acting on it.
return;
}
void* physicsInfo = ownerEntity->getPhysicsInfo();
if (!physicsInfo) {
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning physics info";