Undo breaking and Script not working as before

Undo breaks when running https://github.com/mekkablue/Glyphs-Scripts/blob/master/Metrics/Center%20Glyphs.py on the background layer in Version 2.4b (926)

Also it used to be able to centre things on the background, this was useful. Now it doens’t work it just centres it on zero.

generally: undo brakes from time to time since last beta update (926)

I didn’t change much about undo. There where always some steps that could through off the undo. If you find a way to reproduce it, please tell me.

And for me, the undo still works after running the script. Can you send me a screencast.


Also, The metrics in the background are now wrong which is why the center glyph script doens’t work on background, same paths different RSB?:


Undo still breaks after using centre align script.
Version 2.4RC (934)

@GeorgSeifert undo still breaks