| 1367 | } |
| 1368 | |
| 1369 | void |
| 1370 | Node::getInputNames(std::map<std::string, std::string> & inputNames) const |
| 1371 | { |
| 1372 | ///This is called by the serialization thread. |
| 1373 | ///We use the guiInputs because we want to serialize exactly how the tree was to the user |
| 1374 | |
| 1375 | NodePtr parent = _imp->multiInstanceParent.lock(); |
| 1376 | |
| 1377 | if (parent) { |
| 1378 | parent->getInputNames(inputNames); |
| 1379 | |
| 1380 | return; |
| 1381 | } |
| 1382 | |
| 1383 | QMutexLocker l(&_imp->inputsLabelsMutex); |
| 1384 | assert( _imp->inputs.size() == _imp->inputLabels.size() ); |
| 1385 | for (std::size_t i = 0; i < _imp->inputs.size(); ++i) { |
| 1386 | NodePtr input = _imp->inputs[i].lock(); |
| 1387 | if (input) { |
| 1388 | inputNames.insert( std::make_pair( _imp->inputLabels[i], input->getScriptName_mt_safe() ) ); |
| 1389 | } |
| 1390 | } |
| 1391 | } |
| 1392 | |
| 1393 | int |
| 1394 | Node::getPreferredInputInternal(bool connected) const |
no test coverage detected