| 948 | } |
| 949 | |
| 950 | void |
| 951 | GuiAppInstance::setLastViewerUsingTimeline(const NodePtr& node) |
| 952 | { |
| 953 | if (!node) { |
| 954 | QMutexLocker k(&_imp->lastTimelineViewerMutex); |
| 955 | _imp->lastTimelineViewer.reset(); |
| 956 | |
| 957 | return; |
| 958 | } |
| 959 | if ( node->isEffectViewer() ) { |
| 960 | QMutexLocker k(&_imp->lastTimelineViewerMutex); |
| 961 | _imp->lastTimelineViewer = node; |
| 962 | } |
| 963 | } |
| 964 | |
| 965 | ViewerInstance* |
| 966 | GuiAppInstance::getLastViewerUsingTimeline() const |
no test coverage detected