MCPcopy Create free account
hub / github.com/MrKepzie/Natron / ifGroupForceHashChangeOfInputs

Method ifGroupForceHashChangeOfInputs

Engine/Node.cpp:5777–5791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5775} // Node::connectInput
5776
5777void
5778Node::Implementation::ifGroupForceHashChangeOfInputs()
5779{
5780 ///If the node is a group, force a change of the outputs of the GroupInput nodes so the hash of the tree changes downstream
5781 NodeGroup* isGrp = dynamic_cast<NodeGroup*>( effect.get() );
5782
5783 if ( isGrp && !isGrp->getApp()->isCreatingNodeTree() ) {
5784 NodesList inputsOutputs;
5785 isGrp->getInputsOutputs(&inputsOutputs, false);
5786 for (NodesList::iterator it = inputsOutputs.begin(); it != inputsOutputs.end(); ++it) {
5787 (*it)->incrementKnobsAge_internal();
5788 (*it)->computeHash();
5789 }
5790 }
5791}
5792
5793bool
5794Node::replaceInputInternal(const NodePtr& input, int inputNumber, bool useGuiInputs)

Callers 5

connectInputMethod · 0.80
replaceInputInternalMethod · 0.80
switchInput0And1Method · 0.80
disconnectInputMethod · 0.80

Calls 8

isCreatingNodeTreeMethod · 0.80
getInputsOutputsMethod · 0.80
getMethod · 0.45
getAppMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
computeHashMethod · 0.45

Tested by

no test coverage detected