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

Method restoreKnobsLinks

Engine/NodeMain.cpp:737–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735
736
737void
738Node::restoreKnobsLinks(const NodesList & allNodes,
739 const std::map<std::string, std::string>& oldNewScriptNamesMapping,
740 bool throwOnFailure)
741{
742 ////Only called by the main-thread
743 assert( QThread::currentThread() == qApp->thread() );
744
745 std::vector<KnobIPtr> knobs = getKnobs();
746 for (std::vector<KnobIPtr>::iterator it = knobs.begin(); it != knobs.end(); ++it) {
747 (*it)->restoreLinks(allNodes, oldNewScriptNamesMapping, throwOnFailure);
748 KnobGroupPtr group = std::dynamic_pointer_cast<KnobGroup>(*it);
749 if (group) {
750 _imp->restoreKnobLinksRecursive(allNodes, group, oldNewScriptNamesMapping, throwOnFailure);
751 }
752 }
753}
754
755
756void

Callers 5

pasteNodesInternalMethod · 0.80
pasteNodeMethod · 0.80
cloneSelectedNodesMethod · 0.80
redoMethod · 0.80

Calls 4

restoreLinksMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected