mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:11:13 +02:00
fix near-grab to equip handoff
This commit is contained in:
parent
48898f41b2
commit
df9bc91f01
1 changed files with 5 additions and 0 deletions
|
@ -235,6 +235,11 @@ void AvatarActionHold::doKinematicUpdate(float deltaTimeStep) {
|
||||||
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning entity";
|
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning entity";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (ownerEntity->getParentID() != QUuid()) {
|
||||||
|
// if the held entity has been given a parent, stop acting on it.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
void* physicsInfo = ownerEntity->getPhysicsInfo();
|
void* physicsInfo = ownerEntity->getPhysicsInfo();
|
||||||
if (!physicsInfo) {
|
if (!physicsInfo) {
|
||||||
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning physics info";
|
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning physics info";
|
||||||
|
|
Loading…
Reference in a new issue