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

Method seekFrame

Engine/TimeLine.cpp:57–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void
58TimeLine::seekFrame(SequenceTime frame,
59 bool updateLastCaller,
60 OutputEffectInstance* caller,
61 TimelineChangeReasonEnum reason)
62{
63 if (reason != eTimelineChangeReasonPlaybackSeek) {
64 Q_EMIT frameAboutToChange();
65 }
66 bool changed = false;
67 {
68 QMutexLocker l(&_lock);
69 if (_currentFrame != frame) {
70 _currentFrame = frame;
71 changed = true;
72 }
73 }
74
75 if (_project && updateLastCaller) {
76 _project->getApp()->setLastViewerUsingTimeline( caller ? caller->getNode() : NodePtr() );
77 }
78 if (changed) {
79 Q_EMIT frameChanged(frame, (int)reason);
80 }
81}
82
83void
84TimeLine::incrementCurrentFrame()

Callers 15

goToPreviousKeyframeMethod · 0.80
goToNextKeyframeMethod · 0.80
goToPreviousKeyFrameMethod · 0.80
goToNextKeyFrameMethod · 0.80
threadLoopOnceMethod · 0.80
onOverlayPenDownMethod · 0.80
timelineGoToMethod · 0.80
timeLineGotoTimeMethod · 0.80
mousePressEventMethod · 0.80
mouseDoubleClickEventMethod · 0.80

Calls 3

getAppMethod · 0.45
getNodeMethod · 0.45

Tested by

no test coverage detected