MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / SetCurrentSequence

Method SetCurrentSequence

Editor/TrackViewDialog.cpp:688–711  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

686
687//////////////////////////////////////////////////////////////////////////
688void CTrackViewDialog::SetCurrentSequence( IAnimSequence *curr )
689{
690 if (curr)
691 {
692 m_currSequence = curr;
693 GetIEditor()->GetAnimation()->SetSequence( m_currSequence );
694 m_currSequenceName = curr->GetName();
695
696 m_wndNodes.SetSequence( m_currSequence );
697 Range timeRange = m_currSequence->GetTimeRange();
698 m_wndKeys.SetTimeRange( timeRange.start,timeRange.end );
699 m_wndKeys.SetStartMarker( timeRange.start );
700 m_wndKeys.SetEndMarker( timeRange.end );
701
702 m_sequences.SelectString(-1,m_currSequenceName);
703 }
704 else
705 {
706 m_currSequence = curr;
707 GetIEditor()->GetAnimation()->SetSequence( 0 );
708 m_currSequenceName = "";
709 m_wndNodes.SetSequence( 0 );
710 }
711}
712
713//////////////////////////////////////////////////////////////////////////
714void CTrackViewDialog::OnRecord()

Callers

nothing calls this directly

Calls 9

GetIEditorFunction · 0.85
GetAnimationMethod · 0.80
SetStartMarkerMethod · 0.80
SetEndMarkerMethod · 0.80
SelectStringMethod · 0.80
SetSequenceMethod · 0.45
GetNameMethod · 0.45
GetTimeRangeMethod · 0.45
SetTimeRangeMethod · 0.45

Tested by

no test coverage detected