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

Method getInputNames

Engine/NodeInputs.cpp:1369–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367}
1368
1369void
1370Node::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
1393int
1394Node::getPreferredInputInternal(bool connected) const

Callers 1

Calls 4

lockMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
getScriptName_mt_safeMethod · 0.45

Tested by

no test coverage detected