Skip to content
  • Brecht Van Lommel's avatar
    Add-ons: remove temporary disabling of use_global_undo · 39780841
    Brecht Van Lommel authored
    This can cause bugs where if the operator throws an exception, undo is not
    properly enabled again. There have been maybe a dozen Blender bug reports
    related to this. This could get worse now that we are autosaving preferences.
    
    Some add-ons guard against this, but turning off undo should not be needed in
    the first place. If the operator is set to do an undo push, any operators it
    calls will automatically not do any undo pushes.
    
    If this fail in some cases, it should be reported as a bug in Blender. I could
    not find issues or a performance impact testing a few add-ons though.
    
    Differential Revision: https://developer.blender.org/D4908
    39780841