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

Method Unlink

trinity/Controllers/Tr2TimelineController.cpp:92–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void Tr2TimelineController::Unlink( UnlinkReason reason )
93{
94 if( !m_owner )
95 {
96 return;
97 }
98
99 CCP_STATS_ZONE( __FUNCTION__ );
100
101 if( reason != UnlinkReason::DELETING )
102 {
103 Stop();
104 }
105 for( auto& var : m_variables )
106 {
107 var->SetDestinationBuffer( nullptr );
108 var->SetDirtyMask( nullptr, 0 );
109 }
110 for( auto& action : m_actions )
111 {
112 action->Unlink();
113 }
114 for( auto& eventHandler : m_eventHandlers )
115 {
116 eventHandler->Unlink();
117 }
118 m_bindingPathRoots.clear();
119 m_owner = nullptr;
120}
121
122bool Tr2TimelineController::IsLinked() const
123{

Callers 1

RemoveActionMethod · 0.45

Calls 3

StopFunction · 0.85
SetDestinationBufferMethod · 0.80
SetDirtyMaskMethod · 0.80

Tested by

no test coverage detected