mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 05:14:45 +00:00
[lua] Add ev.fromUndo=false in Sprite change event (so the event object isn't nil)
This commit is contained in:
parent
84765c5052
commit
2e02bd307e
@ -270,7 +270,7 @@ public:
|
||||
|
||||
// DocUndoObserver impl
|
||||
void onAddUndoState(DocUndo* history) override {
|
||||
call(Change);
|
||||
call(Change, { { "fromUndo", false } });
|
||||
}
|
||||
void onCurrentUndoStateChange(DocUndo* history) override {
|
||||
call(Change, { { "fromUndo", true } });
|
||||
|
Loading…
Reference in New Issue
Block a user