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

Method seekFrame

Engine/TimeLine.cpp:56–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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