Hi! Could you please help to figure out how to put everything happening within DRAWFOREGROUND as a single undo step?
I tried this:
def drawforeground( self, layer, event ):
do stuff that should be part of one undo
But seems like I still have to undo as many times as the callback has been called.