| 1533 | } |
| 1534 | |
| 1535 | void |
| 1536 | GuiAppInstance::removeNodesKeyframesFromTimeline(const std::list<Node*> & nodes) |
| 1537 | { |
| 1538 | ///runs only in the main thread |
| 1539 | assert( QThread::currentThread() == qApp->thread() ); |
| 1540 | |
| 1541 | std::list<Node*>::const_iterator next = nodes.begin(); |
| 1542 | if ( next != nodes.end() ) { |
| 1543 | ++next; |
| 1544 | } |
| 1545 | for (std::list<Node*>::const_iterator it = nodes.begin(); it != nodes.end(); ++it) { |
| 1546 | (*it)->hideKeyframesFromTimeline( next == nodes.end() ); |
| 1547 | |
| 1548 | // increment for next iteration |
| 1549 | if ( next != nodes.end() ) { |
| 1550 | ++next; |
| 1551 | } |
| 1552 | } // for(it) |
| 1553 | } |
| 1554 | |
| 1555 | void |
| 1556 | GuiAppInstance::removeNodeKeyframesFromTimeline(Node* node) |
nothing calls this directly
no test coverage detected