Merge branch 'avatar-interaction' of ssh://github.com/AndrewMeadows/hifi into avatar-interaction

This commit is contained in:
Andrew Meadows 2014-02-12 08:31:05 -08:00
commit cc70e099bf

View file

@ -725,9 +725,7 @@ void Model::renderCollisionProxies(float alpha) {
bool Model::collisionHitsMoveableJoint(ModelCollisionInfo& collision) const { bool Model::collisionHitsMoveableJoint(ModelCollisionInfo& collision) const {
// the joint is pokable by a collision if it exists and is free to move // the joint is pokable by a collision if it exists and is free to move
const FBXJoint& joint = _geometry->getFBXGeometry().joints[collision._jointIndex]; const FBXJoint& joint = _geometry->getFBXGeometry().joints[collision._jointIndex];
if (joint.parentIndex == -1 || if (joint.parentIndex == -1 || _jointStates.isEmpty()) {
_jointStates.isEmpty())
{
return false; return false;
} }
// an empty freeLineage means the joint can't move // an empty freeLineage means the joint can't move