| 5123 | } |
| 5124 | |
| 5125 | double |
| 5126 | EffectInstance::getCurrentTime() const |
| 5127 | { |
| 5128 | EffectDataTLSPtr tls = _imp->tlsData->getTLSData(); |
| 5129 | AppInstPtr app = getApp(); |
| 5130 | if (!app) { |
| 5131 | return 0.; |
| 5132 | } |
| 5133 | if (!tls) { |
| 5134 | return app->getTimeLine()->currentFrame(); |
| 5135 | } |
| 5136 | if (tls->currentRenderArgs.validArgs) { |
| 5137 | return tls->currentRenderArgs.time; |
| 5138 | } |
| 5139 | |
| 5140 | |
| 5141 | if ( !tls->frameArgs.empty() ) { |
| 5142 | return tls->frameArgs.back()->time; |
| 5143 | } |
| 5144 | |
| 5145 | return app->getTimeLine()->currentFrame(); |
| 5146 | } |
| 5147 | |
| 5148 | ViewIdx |
| 5149 | EffectInstance::getCurrentView() const |
nothing calls this directly
no test coverage detected