Browse Source

Remove morph clamping.

Lasse Öörni 8 years ago
parent
commit
fd68fb6a5e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Source/Urho3D/Graphics/AnimatedModel.cpp

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

@@ -556,11 +556,9 @@ void AnimatedModel::SetMorphWeight(unsigned index, float weight)
         return;
         return;
 
 
     // If morph vertex buffers have not been created yet, create now
     // If morph vertex buffers have not been created yet, create now
-    if (weight > 0.0f && morphVertexBuffers_.Empty())
+    if (weight != 0.0f && morphVertexBuffers_.Empty())
         CloneGeometries();
         CloneGeometries();
 
 
-    weight = Clamp(weight, 0.0f, 1.0f);
-
     if (weight != morphs_[index].weight_)
     if (weight != morphs_[index].weight_)
     {
     {
         morphs_[index].weight_ = weight;
         morphs_[index].weight_ = weight;