mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 12:44:53 +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/message.h"
|
||||||
#include "ui/system.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>
|
#include <allegro.h>
|
||||||
|
|
||||||
namespace app {
|
namespace app {
|
||||||
@ -106,6 +111,9 @@ bool DrawingState::onMouseUp(Editor* editor, MouseMessage* msg)
|
|||||||
// Back to standby state.
|
// Back to standby state.
|
||||||
editor->backToPreviousState();
|
editor->backToPreviousState();
|
||||||
editor->releaseMouse();
|
editor->releaseMouse();
|
||||||
|
|
||||||
|
// Update the timeline. TODO make this state observable by the timeline.
|
||||||
|
App::instance()->getMainWindow()->getTimeline()->updateUsingEditor(editor);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user