| 735 | |
| 736 | |
| 737 | void |
| 738 | Node::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 | |
| 756 | void |
no test coverage detected