| 2763 | } |
| 2764 | |
| 2765 | static bool |
| 2766 | hasNodeInputsInList(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 | |
| 2790 | static void |
| 2791 | addTreeInputs(const NodesList& nodes, |
no test coverage detected