MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / addNodesKeyframesToTimeline

Method addNodesKeyframesToTimeline

Gui/GuiAppInstance.cpp:1524–1542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1522}
1523
1524void
1525GuiAppInstance::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
1544void
1545GuiAppInstance::addNodeKeyframesToTimeline(Node* node)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected