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

Function isFrameVaryingOrAnimated_impl

Engine/EffectInstance.cpp:5259–5278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5257#endif
5258
5259static
5260void
5261isFrameVaryingOrAnimated_impl(const EffectInstance* node,
5262 bool *ret)
5263{
5264 if ( node->isFrameVarying() || node->getHasAnimation() || node->getNode()->getRotoContext() ) {
5265 *ret = true;
5266 } else {
5267 int maxInputs = node->getNInputs();
5268 for (int i = 0; i < maxInputs; ++i) {
5269 EffectInstancePtr input = node->getInput(i);
5270 if (input) {
5271 isFrameVaryingOrAnimated_impl(input.get(), ret);
5272 if (*ret) {
5273 return;
5274 }
5275 }
5276 }
5277 }
5278}
5279
5280bool
5281EffectInstance::isFrameVaryingOrAnimated_Recursive() const

Callers 1

Calls 7

isFrameVaryingMethod · 0.80
getHasAnimationMethod · 0.80
getRotoContextMethod · 0.45
getNodeMethod · 0.45
getNInputsMethod · 0.45
getInputMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected