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

Method getNearestNonIdentity

Engine/EffectInstance.cpp:5093–5115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5091} // EffectInstance::getNearestNonDisabledPrevious
5092
5093EffectInstancePtr
5094EffectInstance::getNearestNonIdentity(double time)
5095{
5096 U64 hash = getRenderHash();
5097 RenderScale scale(1.);
5098 Format frmt;
5099
5100 getApp()->getProject()->getProjectDefaultFormat(&frmt);
5101
5102 double inputTimeIdentity;
5103 int inputNbIdentity;
5104 ViewIdx inputView;
5105 if ( !isIdentity_public(true, hash, time, scale, frmt, ViewIdx(0), &inputTimeIdentity, &inputView, &inputNbIdentity) ) {
5106 return shared_from_this();
5107 } else {
5108 if (inputNbIdentity < 0) {
5109 return shared_from_this();
5110 }
5111 EffectInstancePtr effect = getInput(inputNbIdentity);
5112
5113 return effect ? effect->getNearestNonIdentity(time) : shared_from_this();
5114 }
5115}
5116
5117void
5118EffectInstance::onNodeHashChanged(U64 hash)

Callers 2

getFormatMethod · 0.80
getFrameRateMethod · 0.80

Calls 4

getAppFunction · 0.85
getProjectMethod · 0.80
ViewIdxClass · 0.70

Tested by

no test coverage detected