Setting steps where ctrl-z, undo, goes to

I am working on a small add-on, at the moment all it does is extrudes the selected vertices and scales them 2 along the normals. If I run it once it looks good, twice is fine. But if I ctlr-z to undo it is taking it all the way back to before any code was executed. It is registered as an add-on and shows up when the space bar is pressed (that’s how I execute it) This image below shows what I am hoping to achieve:


does the operator class have

bl_options = {‘REGISTER’, ‘UNDO’}

?

Now it does. Thank you very much. :slight_smile: