| 5181 | } |
| 5182 | |
| 5183 | double |
| 5184 | EffectInstance::getCurrentTime() const |
| 5185 | { |
| 5186 | EffectTLSDataPtr tls = _imp->tlsData->getTLSData(); |
| 5187 | AppInstancePtr app = getApp(); |
| 5188 | if (!app) { |
| 5189 | return 0.; |
| 5190 | } |
| 5191 | if (!tls) { |
| 5192 | return app->getTimeLine()->currentFrame(); |
| 5193 | } |
| 5194 | if (tls->currentRenderArgs.validArgs) { |
| 5195 | return tls->currentRenderArgs.time; |
| 5196 | } |
| 5197 | |
| 5198 | |
| 5199 | if ( !tls->frameArgs.empty() ) { |
| 5200 | return tls->frameArgs.back()->time; |
| 5201 | } |
| 5202 | |
| 5203 | return app->getTimeLine()->currentFrame(); |
| 5204 | } |
| 5205 | |
| 5206 | ViewIdx |
| 5207 | EffectInstance::getCurrentView() const |
nothing calls this directly
no test coverage detected