MCPcopy Create free account
hub / github.com/carbonengine/trinity / RegisterMorphTracks

Method RegisterMorphTracks

trinity/Tr2GrannyAnimationLayer.cpp:367–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void Tr2GrannyAnimationLayer::RegisterMorphTracks( cmf::AnimationPlayer* player, const cmf::Animation* animation )
368{
369 for( const auto& channel : animation->channels )
370 {
371 if( channel.targetType == cmf::AnimationChannelTargetType::MorphTarget )
372 {
373 m_morphTracks[player].push_back( MorphTrack( &channel, &animation->curves[channel.curveIndex] ) );
374 }
375 }
376}
377
378#if WITH_GRANNY
379void Tr2GrannyAnimationLayer::RegisterTextTracks( granny_control* control, const granny_animation* anim )

Callers

nothing calls this directly

Calls 1

MorphTrackClass · 0.85

Tested by

no test coverage detected