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

Method goToNextKeyframe

Gui/GuiAppInstance.cpp:1607–1620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1605}
1606
1607void
1608GuiAppInstance::goToNextKeyframe()
1609{
1610 ///runs only in the main thread
1611 assert( QThread::currentThread() == qApp->thread() );
1612
1613 _imp->timelineKeyframes.sort();
1614 TimeLinePtr timeline = getProject()->getTimeLine();
1615 SequenceTime currentFrame = timeline->currentFrame();
1616 std::list<SequenceTime>::iterator upperBound = std::upper_bound(_imp->timelineKeyframes.begin(), _imp->timelineKeyframes.end(), currentFrame);
1617 if ( upperBound != _imp->timelineKeyframes.end() ) {
1618 timeline->seekFrame(*upperBound, true, NULL, eTimelineChangeReasonPlaybackSeek);
1619 }
1620}
1621
1622void
1623GuiAppInstance::setKnobDnDData(QDrag* drag,

Callers 4

keyPressEventMethod · 0.45
keyPressEventMethod · 0.45
keyPressEventMethod · 0.45

Calls 6

seekFrameMethod · 0.80
sortMethod · 0.45
getTimeLineMethod · 0.45
currentFrameMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected