| 1522 | } |
| 1523 | |
| 1524 | void |
| 1525 | GuiAppInstance::addNodesKeyframesToTimeline(const std::list<Node*> & nodes) |
| 1526 | { |
| 1527 | ///runs only in the main thread |
| 1528 | assert( QThread::currentThread() == qApp->thread() ); |
| 1529 | |
| 1530 | std::list<Node*>::const_iterator next = nodes.begin(); |
| 1531 | if ( next != nodes.end() ) { |
| 1532 | ++next; |
| 1533 | } |
| 1534 | for (std::list<Node*>::const_iterator it = nodes.begin(); it != nodes.end(); ++it) { |
| 1535 | (*it)->showKeyframesOnTimeline( next == nodes.end() ); |
| 1536 | |
| 1537 | // increment for next iteration |
| 1538 | if ( next != nodes.end() ) { |
| 1539 | ++next; |
| 1540 | } |
| 1541 | } // for() |
| 1542 | } |
| 1543 | |
| 1544 | void |
| 1545 | GuiAppInstance::addNodeKeyframesToTimeline(Node* node) |
nothing calls this directly
no test coverage detected