| 573 | } |
| 574 | |
| 575 | void AnimatedModel::ClearBlendShapeWeights() |
| 576 | { |
| 577 | if (_deformation) |
| 578 | { |
| 579 | Function<void(const MeshBase*, MeshDeformationData&)> deformer; |
| 580 | deformer.Bind<AnimatedModel, &AnimatedModel::RunBlendShapeDeformer>(this); |
| 581 | for (auto e : _blendShapeMeshes) |
| 582 | _deformation->RemoveDeformer(e.LODIndex, e.MeshIndex, MeshBufferType::Vertex0, deformer); |
| 583 | } |
| 584 | _blendShapeWeights.Clear(); |
| 585 | _blendShapeMeshes.Clear(); |
| 586 | } |
| 587 | |
| 588 | void AnimatedModel::PlaySlotAnimation(const StringView& slotName, Animation* anim, float speed, float blendInTime, float blendOutTime, int32 loopCount) |
| 589 | { |
no test coverage detected