| 413 | } |
| 414 | |
| 415 | bool |
| 416 | ViewerTabPrivate::hasInactiveNodeViewerContext(const NodePtr& node) |
| 417 | { |
| 418 | std::list<ViewerTabPrivate::PluginViewerContext>::iterator found = findActiveNodeContextForPlugin( node->getPluginID() ); |
| 419 | |
| 420 | if ( found == currentNodeContext.end() ) { |
| 421 | return false; |
| 422 | } |
| 423 | NodeGuiPtr n = found->currentNode.lock(); |
| 424 | if (!n) { |
| 425 | return false; |
| 426 | } |
| 427 | |
| 428 | return n->getNode() != node; |
| 429 | } |
| 430 | |
| 431 | NATRON_NAMESPACE_EXIT |
no test coverage detected