| 471 | } |
| 472 | |
| 473 | void RenderGraphUI::addOutput(const std::string& outputParam) |
| 474 | { |
| 475 | size_t offset = outputParam.find('.'); |
| 476 | std::string outputPass = outputParam.substr(0, offset); |
| 477 | std::string outputField = outputParam.substr(offset + 1, outputParam.size()); |
| 478 | |
| 479 | const auto passUIIt = mRenderPassUI.find(outputPass); |
| 480 | if (passUIIt == mRenderPassUI.end()) |
| 481 | { |
| 482 | msgBox("Error", "Error setting graph output. Can't find node name."); |
| 483 | return; |
| 484 | } |
| 485 | auto& passUI = passUIIt->second; |
| 486 | const auto outputIt = passUI.mNameToIndexOutput.find(outputField); |
| 487 | if (outputIt == passUI.mNameToIndexOutput.end()) |
| 488 | { |
| 489 | msgBox("Error", "Error setting graph output. Can't find output name."); |
| 490 | return; |
| 491 | } |
| 492 | passUI.mOutputPins[outputIt->second].mIsGraphOutput = true; |
| 493 | mpIr->markOutput(outputParam); |
| 494 | mRebuildDisplayData = true; |
| 495 | mShouldUpdate = true; |
| 496 | } |
| 497 | |
| 498 | void RenderGraphUI::addOutput(const std::string& outputPass, const std::string& outputField) |
| 499 | { |