|
@@ -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;
|