mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Update the timeline after drawing in the sprite editor (after DrawingState)
This commit is contained in:
parent
afc83ec09a
commit
ad6f18c11c
@ -30,6 +30,11 @@
|
||||
#include "ui/message.h"
|
||||
#include "ui/system.h"
|
||||
|
||||
// TODO remove these headers and make this state observable by the timeline.
|
||||
#include "app/app.h"
|
||||
#include "app/ui/main_window.h"
|
||||
#include "app/ui/timeline.h"
|
||||
|
||||
#include <allegro.h>
|
||||
|
||||
namespace app {
|
||||
@ -106,6 +111,9 @@ bool DrawingState::onMouseUp(Editor* editor, MouseMessage* msg)
|
||||
// Back to standby state.
|
||||
editor->backToPreviousState();
|
||||
editor->releaseMouse();
|
||||
|
||||
// Update the timeline. TODO make this state observable by the timeline.
|
||||
App::instance()->getMainWindow()->getTimeline()->updateUsingEditor(editor);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user