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

Method refreshOutputNode

Engine/PrecompNode.cpp:601–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599} // PrecompNodePrivate::createReadNode
600
601void
602PrecompNodePrivate::refreshOutputNode()
603{
604 bool usePreRender = enablePreRenderKnob.lock()->getValue();
605 NodePtr outputnode;
606
607 if (!usePreRender) {
608 KnobStringPtr outputNodeKnob = outputNodeNameKnob.lock();
609 std::string outputNodeName = outputNodeKnob->getValue();
610
611 outputnode = app.lock()->getProject()->getNodeByFullySpecifiedName(outputNodeName);
612 }
613
614 //Clear any persistent message set
615 _publicInterface->clearPersistentMessage(false);
616
617 {
618 QMutexLocker k(&dataMutex);
619 outputNode = outputnode;
620 }
621
622 ///Notify outputs that the node has changed
623 std::map<NodePtr, int> outputs;
624 NodePtr thisNode = _publicInterface->getNode();
625 thisNode->getOutputsConnectedToThisNode(&outputs);
626
627 for (std::map<NodePtr, int>::iterator it = outputs.begin(); it != outputs.end(); ++it) {
628 it->first->onInputChanged(it->second);
629 }
630}
631
632void
633PrecompNodePrivate::setFirstAndLastFrame()

Callers 1

knobChangedMethod · 0.80

Calls 10

getProjectMethod · 0.80
getValueMethod · 0.45
lockMethod · 0.45
getNodeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
onInputChangedMethod · 0.45

Tested by

no test coverage detected