MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / hasInactiveNodeViewerContext

Method hasInactiveNodeViewerContext

Gui/ViewerTabPrivate.cpp:415–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415bool
416ViewerTabPrivate::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
431NATRON_NAMESPACE_EXIT

Calls 4

getPluginIDMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
getNodeMethod · 0.45

Tested by

no test coverage detected