Page MenuHome

Check operators for potentially missing "UNDO" in bl_options
Confirmed, NormalPublicTO DO

Description

Description:
Python operators that modify ID data without setting "UNDO" in their bl_options can result in a crash when the user undoes changes. Since T82763 showed that not all Blender add-ons have been tested and update to comply with the changes made to the undo system and there are several operators using just bl_options = {"REGISTER"} or bl_options = {'REGISTER'}, it would be a good idea to check that the remaining operators do not make the same mistake.

Work plan

The following is a list of all operators that use bl_options with REGISTER but without UNDO. Not all of them modify ID data, hence some will not require UNDO to be included. However, all of the need to be checked whether or not that is the case.

Blender Add-ons

Blender Add-ons Contrib

Blender Startup Scripts

Event Timeline

Robert Guetzkow (rjg) updated the task description. (Show Details)
Robert Guetzkow (rjg) updated the task description. (Show Details)
Robert Guetzkow (rjg) updated the task description. (Show Details)
Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.Sat, Nov 21, 12:40 PM
Robert Guetzkow (rjg) renamed this task from ToDo: Check operators for potentially missing "UNDO" in bl_options to Check operators for potentially missing "UNDO" in bl_options.Sat, Nov 21, 12:48 PM
Robert Guetzkow (rjg) updated the task description. (Show Details)