undoInfo -swf

Is it just me, or did the behavior of undoInfo -swf change in a recent maya release? I have a bunch of code that inside blocks where the undo state should be off but which is still getting popped onto the undo queue (my users are undoing actions that happen behind the scenes of the export process, which is highly annoying).

I don’t feel like this was an issue until the last month or so, and this code is 2+ years old. we recently upgraded everybody to 2015 SP5. Coincidence?

why are you using stateWithoutFlush as opposed to just using “openChunk” and “closeChunk” with those you can directly define what counts as 1 undo chunk.

I don’t want users to ‘undo’ things that happen during export, but I’d like them to keep their undo history from before if possible.

I have some code that uses StateWithoutFlush and it seems to be working fine in 2015 service pack 6, and in 2016.