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

Function hasNodeInputsInList

Engine/Project.cpp:2765–2788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2763}
2764
2765static bool
2766hasNodeInputsInList(const NodesList& nodes,
2767 const NodePtr& node)
2768{
2769 const std::vector<NodeWPtr>& inputs = node->getGuiInputs();
2770 bool foundInput = false;
2771
2772 for (NodesList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
2773 if (*it != node) {
2774 for (std::size_t i = 0; i < inputs.size(); ++i) {
2775 NodePtr input = inputs[i].lock();
2776 if (input == *it) {
2777 foundInput = true;
2778 break;
2779 }
2780 }
2781 if (foundInput) {
2782 break;
2783 }
2784 }
2785 }
2786
2787 return foundInput;
2788}
2789
2790static void
2791addTreeInputs(const NodesList& nodes,

Callers 1

addTreeInputsFunction · 0.70

Calls 4

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected