| 685 | |
| 686 | |
| 687 | void |
| 688 | Node::storeKnobsLinks(const NodeSerialization & serialization, |
| 689 | const std::map<std::string, std::string>& oldNewScriptNamesMapping) |
| 690 | { |
| 691 | ////Only called by the main-thread |
| 692 | assert( QThread::currentThread() == qApp->thread() ); |
| 693 | |
| 694 | const NodeSerialization::KnobValues & knobsValues = serialization.getKnobsValues(); |
| 695 | ///try to find a serialized value for this knob |
| 696 | for (NodeSerialization::KnobValues::const_iterator it = knobsValues.begin(); it != knobsValues.end(); ++it) { |
| 697 | KnobIPtr knob = getKnobByName( (*it)->getName() ); |
| 698 | if (!knob) { |
| 699 | LogEntry::LogEntryColor c; |
| 700 | if (getColor(&c.r, &c.g, &c.b)) { |
| 701 | c.colorSet = true; |
| 702 | } |
| 703 | |
| 704 | QString err = tr("Could not find a parameter named %1").arg( QString::fromUtf8( (*it)->getName().c_str() ) ); |
| 705 | appPTR->writeToErrorLog_mt_safe(QString::fromUtf8( getScriptName_mt_safe().c_str() ), QDateTime::currentDateTime(), err, false, c); |
| 706 | continue; |
| 707 | } |
| 708 | (*it)->storeKnobLinks(knob); |
| 709 | (*it)->restoreExpressions(knob, oldNewScriptNamesMapping); |
| 710 | } |
| 711 | |
| 712 | const std::list<GroupKnobSerializationPtr>& userKnobs = serialization.getUserPages(); |
| 713 | for (std::list<GroupKnobSerializationPtr>::const_iterator it = userKnobs.begin(); it != userKnobs.end(); ++it) { |
| 714 | _imp->storeKnobLinksRecursive( (*it).get(), oldNewScriptNamesMapping ); |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | |
| 719 | void |
no test coverage detected