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

Method isInputOptional

Engine/ViewerInstance.cpp:2964–2977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2962} // ViewerInstance::ViewerInstancePrivate::updateViewer
2963
2964bool
2965ViewerInstance::isInputOptional(int n) const
2966{
2967 //activeInput() is MT-safe
2968 int activeInputs[2];
2969
2970 getActiveInputs(activeInputs[0], activeInputs[1]);
2971
2972 if ( (n == 0) && (activeInputs[0] == -1) && (activeInputs[1] == -1) ) {
2973 return false;
2974 }
2975
2976 return n != activeInputs[0] && n != activeInputs[1];
2977}
2978
2979void
2980ViewerInstance::onGammaChanged(double value)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected