global undo pain!!!!!!


i just noticed that everytime i press “ctrl-z” (undo) it applies to all windows
,so if i have a script running , it closes :@. is there anyway i can
detect this in python script and prevent script from closing.

no, but some people have complained already

[I wouldn’t expect any solutions for the next release, perhaps the one after]

I would not get my hopes up.

The fundamental problem is that our bpy python objects hold pointers to blender data. If an undo makes the data go away, the pointer becomes invalid. If you try to use that python object, bad things will happen. At best, you get a segfault and the accompanying crash. At worst, blender keeps running but with corrupted data.