normalize quat

This commit is contained in:
yangxiao 2014-09-01 09:34:09 +08:00
parent a039d6b0fc
commit f3e017e139
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ void Bone3D::updateLocalMat()
} }
quat = Quaternion(it.localRot.x * weight + quat.x, it.localRot.y * weight + quat.y, it.localRot.z * weight + quat.z, it.localRot.w * weight + quat.w); quat = Quaternion(it.localRot.x * weight + quat.x, it.localRot.y * weight + quat.y, it.localRot.z * weight + quat.z, it.localRot.w * weight + quat.w);
} }
quat.normalize();
} }
} }