Browse Source

Removed special case forced animation update if animation blending changes.

Lasse Öörni 15 years ago
parent
commit
a7628dcc73
1 changed files with 2 additions and 7 deletions
  1. 2 7
      Engine/Renderer/AnimatedModel.cpp

+ 2 - 7
Engine/Renderer/AnimatedModel.cpp

@@ -1091,11 +1091,7 @@ void AnimatedModel::updateAnimation(const FrameInfo& frame)
         if (mAnimationLodTimer >= mAnimationLodDistance)
             mAnimationLodTimer = fmodf(mAnimationLodTimer, mAnimationLodDistance);
         else
-        {
-            // If animation order changed (animations added/removed), force always an immediate update
-            if (!mAnimationOrderDirty)
-                return;
-        }
+            return;
     }
     
     PROFILE(AnimatedModel_UpdateAnimation);
@@ -1121,8 +1117,7 @@ void AnimatedModel::updateSkinning()
 {
     PROFILE(AnimatedModel_UpdateSkinning);
     
-    // Note: the model's world transform will be baked in the skin matrices. When preparing to render,
-    // the model transform will then be set to identity
+    // Note: the model's world transform will be baked in the skin matrices
     const std::vector<SharedPtr<Bone > >& bones = mSkeleton.getBones();
     
     // Skinning with global matrices only