Browse Source

Only perform AnimatedModel bone hitbox ray testing when RAY_TRIANGLE is specified, to allow RAY_OBB to test against the whole model's OBB.

Lasse Öörni 11 years ago
parent
commit
9c3348ed98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Graphics/AnimatedModel.cpp

+ 1 - 1
Source/Urho3D/Graphics/AnimatedModel.cpp

@@ -135,7 +135,7 @@ void AnimatedModel::ProcessRayQuery(const RayOctreeQuery& query, PODVector<RayQu
 {
     // If no bones or no bone-level testing, use the StaticModel test
     RayQueryLevel level = query.level_;
-    if (level < RAY_AABB || !skeleton_.GetNumBones())
+    if (level < RAY_TRIANGLE || !skeleton_.GetNumBones())
     {
         StaticModel::ProcessRayQuery(query, results);
         return;