| 90 | } |
| 91 | |
| 92 | void 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 | |
| 122 | bool Tr2TimelineController::IsLinked() const |
| 123 | { |
no test coverage detected