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

Method getRealInputForInput

Engine/NodeGroup.cpp:1482–1504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1480}
1481
1482NodePtr
1483NodeGroup::getRealInputForInput(bool useGuiConnexions,
1484 const NodePtr& input) const
1485{
1486 {
1487 QMutexLocker k(&_imp->nodesLock);
1488 if (!useGuiConnexions) {
1489 for (U32 i = 0; i < _imp->inputs.size(); ++i) {
1490 if (_imp->inputs[i].lock() == input) {
1491 return getNode()->getInput(i);
1492 }
1493 }
1494 } else {
1495 for (U32 i = 0; i < _imp->guiInputs.size(); ++i) {
1496 if (_imp->guiInputs[i].lock() == input) {
1497 return getNode()->getGuiInput(i);
1498 }
1499 }
1500 }
1501 }
1502
1503 return NodePtr();
1504}
1505
1506void
1507NodeGroup::getInputsOutputs(NodesList* nodes,

Callers 1

Calls 5

getGuiInputMethod · 0.80
getNodeFunction · 0.70
sizeMethod · 0.45
lockMethod · 0.45
getInputMethod · 0.45

Tested by

no test coverage detected