| 487 | } |
| 488 | |
| 489 | NodePtr |
| 490 | PrecompNodePrivate::getWriteNodeFromPreComp() const |
| 491 | { |
| 492 | ChoiceOption userChoiceNodeName = writeNodesKnob.lock()->getActiveEntry(); |
| 493 | |
| 494 | if (userChoiceNodeName.id == "None") { |
| 495 | return NodePtr(); |
| 496 | } |
| 497 | NodePtr writeNode = app.lock()->getProject()->getNodeByFullySpecifiedName(userChoiceNodeName.id); |
| 498 | if (!writeNode) { |
| 499 | std::stringstream ss; |
| 500 | ss << tr("Could not find a node named %1 in the pre-comp project") |
| 501 | .arg( QString::fromUtf8( userChoiceNodeName.id.c_str() ) ).toStdString(); |
| 502 | Dialogs::errorDialog( tr("Pre-Comp").toStdString(), ss.str() ); |
| 503 | |
| 504 | return NodePtr(); |
| 505 | } |
| 506 | |
| 507 | return writeNode; |
| 508 | } |
| 509 | |
| 510 | void |
| 511 | PrecompNode::getPrecompInputs(NodesList* nodes) const |
nothing calls this directly
no test coverage detected