| 594 | } |
| 595 | |
| 596 | vector<OutputPtr> NodeGraph::getMaterialOutputs() const |
| 597 | { |
| 598 | vector<OutputPtr> materialOutputs; |
| 599 | for (auto graphOutput : getActiveOutputs()) |
| 600 | { |
| 601 | if (graphOutput->getType() == MATERIAL_TYPE_STRING) |
| 602 | { |
| 603 | NodePtr node = graphOutput->getConnectedNode(); |
| 604 | if (node && node->getType() == MATERIAL_TYPE_STRING) |
| 605 | { |
| 606 | materialOutputs.push_back(graphOutput); |
| 607 | } |
| 608 | } |
| 609 | } |
| 610 | return materialOutputs; |
| 611 | } |
| 612 | |
| 613 | void NodeGraph::setNodeDef(ConstNodeDefPtr nodeDef) |
| 614 | { |
no test coverage detected