| 5091 | } // EffectInstance::getNearestNonDisabledPrevious |
| 5092 | |
| 5093 | EffectInstancePtr |
| 5094 | EffectInstance::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 | |
| 5117 | void |
| 5118 | EffectInstance::onNodeHashChanged(U64 hash) |
no test coverage detected