tornavis/release
Philipp Oeser f3fb1df192 Fix T86293: crash undoing after executing the python console in certain
scenarios

In general, I could not find a reason executing from the python console
should not do an Undo push. Running a script from the Text Editor does
this as well and this seems generally useful.

Without an Undo push, one can easily run into situations were IDs have
been added or removed and undo on would then cause trouble (e.g. first
selection then bpy.ops.object.duplicate() -- this crashed as reported in
T86293 -- duplicate does not get its own undo push because it is not the
last op in the list, wm->op_undo_depth is not zero). This has changed
with the Undo refactor, so in essence the root cause is the same as
T77557, Legacy Undo does not suffer from the crash (but misses
the generally useful undo push from the console still)

Now add Undo to CONSOLE_OT_execute bl_options ('UNDO_GROUPED' seems more
appropriate than plain 'UNDO' since pasting multiple lines of code will
call CONSOLE_OT_execute multiple times in a row).

Maniphest Tasks: T86293

Differential Revision: https://developer.blender.org/D10625
2021-03-05 12:50:55 +01:00
..
bin Cleanup: spelling 2017-04-27 21:41:03 +10:00
darwin UI: use system generated document icon on macOS 2021-02-03 17:14:46 +01:00
datafiles Icons: Add icon for the upcoming spreadsheet editor 2021-02-25 18:09:00 +01:00
freedesktop Docs: 2.92 release description for Linux appdata 2021-02-24 17:24:11 +01:00
license Licenses: Attribution document 2020-12-11 18:44:11 +01:00
lts Blender LTS: Download + Release notes CMS scripts 2020-12-09 09:14:53 +01:00
scripts Fix T86293: crash undoing after executing the python console in certain 2021-03-05 12:50:55 +01:00
steam Steam Release: Script creation of Steam build files 2020-12-16 11:15:18 +01:00
text Move license files to license subfolder 2020-09-24 12:49:36 +02:00
windows Windows: Add "--debug-cycles" argument to "blender_debug_gpu.bat" batch file 2021-01-21 16:47:16 +01:00