| 383 | } |
| 384 | |
| 385 | void |
| 386 | NodeCollection::forceRefreshPreviews() |
| 387 | { |
| 388 | AppInstancePtr appInst = getApplication(); |
| 389 | if (!appInst) { |
| 390 | return; |
| 391 | } |
| 392 | if ( appInst->isBackground() ) { |
| 393 | return; |
| 394 | } |
| 395 | double time = appInst->getTimeLine()->currentFrame(); |
| 396 | NodesList nodes; |
| 397 | getActiveNodes(&nodes); |
| 398 | for (NodesList::iterator it = nodes.begin(); it != nodes.end(); ++it) { |
| 399 | if ( (*it)->isPreviewEnabled() ) { |
| 400 | (*it)->computePreviewImage(time); |
| 401 | } |
| 402 | NodeGroup* isGrp = (*it)->isEffectGroup(); |
| 403 | if (isGrp) { |
| 404 | isGrp->forceRefreshPreviews(); |
| 405 | } |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | void |
| 410 | NodeCollection::clearNodesInternal(bool blocking) |
no test coverage detected