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

Method OnListModified

trinity/Curves/Tr2FollowCurve.cpp:23–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void Tr2FollowCurve::OnListModified( long event, ssize_t key, ssize_t key2, IRoot* value, const IList* list )
24{
25 if( list == &m_keys )
26 {
27 switch( event & BELIST_EVENTMASK )
28 {
29 case BELIST_REMOVED:
30 case BELIST_INSERTED:
31 std::stable_sort(
32 m_keys.begin(),
33 m_keys.end(),
34 []( ITr2FollowCurveKey* k0, ITr2FollowCurveKey* k1 ) { return k0->GetTime() < k1->GetTime(); } );
35 break;
36 default:
37 break;
38 }
39 }
40}
41
42Vector3 Tr2FollowCurve::GetValue( double time ) const
43{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
GetTimeMethod · 0.45

Tested by

no test coverage detected