| 5033 | } // EffectInstance::getNearestNonDisabledPrevious |
| 5034 | |
| 5035 | EffectInstPtr |
| 5036 | EffectInstance::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 | |
| 5059 | void |
| 5060 | EffectInstance::onNodeHashChanged(U64 hash) |
no test coverage detected