| 332 | } |
| 333 | |
| 334 | void |
| 335 | NodeCollection::refreshViewersAndPreviews() |
| 336 | { |
| 337 | assert( QThread::currentThread() == qApp->thread() ); |
| 338 | |
| 339 | AppInstancePtr appInst = getApplication(); |
| 340 | if (!appInst) { |
| 341 | return; |
| 342 | } |
| 343 | if ( !appInst->isBackground() ) { |
| 344 | NodesList nodes = getNodes(); |
| 345 | for (NodesList::iterator it = nodes.begin(); it != nodes.end(); ++it) { |
| 346 | assert(*it); |
| 347 | (*it)->refreshPreviewsAfterProjectLoad(); |
| 348 | NodeGroup* isGrp = (*it)->isEffectGroup(); |
| 349 | if (isGrp) { |
| 350 | isGrp->refreshViewersAndPreviews(); |
| 351 | } else { |
| 352 | ViewerInstance* n = (*it)->isEffectViewer(); |
| 353 | if (n) { |
| 354 | n->renderCurrentFrame(true); |
| 355 | } |
| 356 | } |
| 357 | } |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | void |
| 362 | NodeCollection::refreshPreviews() |
nothing calls this directly
no test coverage detected