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

Method undo

Engine/TrackerUndoCommand.cpp:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void
47AddTrackCommand::undo()
48{
49 TrackerContextPtr context = _context.lock();
50
51 if (!context) {
52 return;
53 }
54
55 context->beginEditSelection(TrackerContext::eTrackSelectionInternal);
56 for (std::map<int, TrackMarkerPtr>::const_iterator it = _markers.begin(); it != _markers.end(); ++it) {
57 context->removeMarker(it->second);
58 }
59 context->endEditSelection(TrackerContext::eTrackSelectionInternal);
60 context->getNode()->getApp()->triggerAutoSave();
61}
62
63void
64AddTrackCommand::redo()

Callers

nothing calls this directly

Calls 14

beginEditSelectionMethod · 0.80
endEditSelectionMethod · 0.80
getMarkerIndexMethod · 0.80
insertMarkerMethod · 0.80
appendMarkerMethod · 0.80
addTrackToSelectionMethod · 0.80
lockMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
removeMarkerMethod · 0.45
triggerAutoSaveMethod · 0.45
getAppMethod · 0.45

Tested by

no test coverage detected