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

Function hasNodeOutputsInList

Engine/Project.cpp:2741–2763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2739}
2740
2741static bool
2742hasNodeOutputsInList(const NodesList& nodes,
2743 const NodePtr& node)
2744{
2745 const NodesWList& outputs = node->getGuiOutputs();
2746 bool foundOutput = false;
2747
2748 for (NodesList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
2749 if (*it != node) {
2750 for (NodesWList::const_iterator it2 = outputs.begin(); it2 != outputs.end(); ++it2) {
2751 if (it2->lock() == *it) {
2752 foundOutput = true;
2753 break;
2754 }
2755 }
2756 if (foundOutput) {
2757 break;
2758 }
2759 }
2760 }
2761
2762 return foundOutput;
2763}
2764
2765static bool
2766hasNodeInputsInList(const NodesList& nodes,

Callers 1

extractTreesFromNodesMethod · 0.70

Calls 3

beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected