| 1480 | } |
| 1481 | |
| 1482 | NodePtr |
| 1483 | NodeGroup::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 | |
| 1506 | void |
| 1507 | NodeGroup::getInputsOutputs(NodesList* nodes, |
no test coverage detected