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

Method getNearestNonIdentity

Engine/EffectInstance.cpp:5035–5057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5033} // EffectInstance::getNearestNonDisabledPrevious
5034
5035EffectInstPtr
5036EffectInstance::getNearestNonIdentity(double time)
5037{
5038 U64 hash = getRenderHash();
5039 RenderScale scale(1.);
5040 Format frmt;
5041
5042 getApp()->getProject()->getProjectDefaultFormat(&frmt);
5043
5044 double inputTimeIdentity;
5045 int inputNbIdentity;
5046 ViewIdx inputView;
5047 if ( !isIdentity_public(true, hash, time, scale, frmt, ViewIdx(0), &inputTimeIdentity, &inputView, &inputNbIdentity) ) {
5048 return shared_from_this();
5049 } else {
5050 if (inputNbIdentity < 0) {
5051 return shared_from_this();
5052 }
5053 EffectInstPtr effect = getInput(inputNbIdentity);
5054
5055 return effect ? effect->getNearestNonIdentity(time) : shared_from_this();
5056 }
5057}
5058
5059void
5060EffectInstance::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