MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onExecute

Method onExecute

src/app/commands/cmd_reverse_frames.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void ReverseFramesCommand::onExecute(Context* context)
48{
49 auto range = App::instance()->timeline()->range();
50 if (!range.enabled())
51 return; // Nothing to do
52
53 Document* doc = context->activeDocument();
54
55 reverse_frames(doc, range);
56
57 update_screen_for_document(doc);
58}
59
60Command* CommandFactory::createReverseFramesCommand()
61{

Callers

nothing calls this directly

Calls 7

instanceFunction · 0.85
reverse_framesFunction · 0.85
timelineMethod · 0.80
rangeMethod · 0.45
enabledMethod · 0.45
activeDocumentMethod · 0.45

Tested by

no test coverage detected