瀏覽代碼

Remove morph clamping.

Lasse Öörni 8 年之前
父節點
當前提交
fd68fb6a5e
共有 1 個文件被更改,包括 1 次插入3 次删除
  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;
 
     // If morph vertex buffers have not been created yet, create now
-    if (weight > 0.0f && morphVertexBuffers_.Empty())
+    if (weight != 0.0f && morphVertexBuffers_.Empty())
         CloneGeometries();
 
-    weight = Clamp(weight, 0.0f, 1.0f);
-
     if (weight != morphs_[index].weight_)
     {
         morphs_[index].weight_ = weight;