[lua] Add ev.fromUndo=false in Sprite change event (so the event object isn't nil)

This commit is contained in:
David Capello 2023-01-05 11:23:42 -03:00
parent 84765c5052
commit 2e02bd307e

View File

@ -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 } });