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

Method connectToInput

Gui/ViewerTab30.cpp:1106–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106void
1107ViewerTab::connectToInput(int inputNb,
1108 bool isASide)
1109{
1110 InspectorNode* node = dynamic_cast<InspectorNode*>( getInternalNode()->getNode().get() );
1111
1112 assert(node);
1113 if (!node) {
1114 return;
1115 }
1116 bool isAutoWipeEnabled = appPTR->getCurrentSettings()->isAutoWipeEnabled();
1117 if (isAutoWipeEnabled) {
1118 getInternalNode()->setActivateInputChangeRequestedFromViewer(true);
1119 }
1120 node->setActiveInputAndRefresh(inputNb, isASide);
1121 if (isAutoWipeEnabled) {
1122 getInternalNode()->setActivateInputChangeRequestedFromViewer(false);
1123 }
1124}
1125
1126void
1127ViewerTab::connectToAInput(int inputNb)

Callers

nothing calls this directly

Calls 6

isAutoWipeEnabledMethod · 0.80
getCurrentSettingsMethod · 0.80
getMethod · 0.45
getNodeMethod · 0.45

Tested by

no test coverage detected