MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ClearBlendShapeWeights

Method ClearBlendShapeWeights

Source/Engine/Level/Actors/AnimatedModel.cpp:575–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void 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
588void AnimatedModel::PlaySlotAnimation(const StringView& slotName, Animation* anim, float speed, float blendInTime, float blendOutTime, int32 loopCount)
589{

Callers 1

InitializeMethod · 0.80

Calls 2

RemoveDeformerMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected