Blender Git Commit Log

Git Commits -> Revision 0427261

Revision 0427261 by Alexander Gavrilov (master)
November 18, 2019, 19:03 (GMT)
Python API: assume that a crashed Python operator returned FINISHED.

The CANCELLED return value from an operator is intended for
signaling that the operator aborted execution without changing
anything, and an Undo stack entry should not be created.

When a Python operator crashes, it is not safe to assume that
it did nothing, so it should interpret it as FINISHED instead.
Otherwise, the undo system behavior after an operator failure
feels broken.

Differential Revision: https://developer.blender.org/D6241

Commit Details:

Full Hash: 04272613a78d805e900941b21df16dbbcafc6849
Parent Commit: 64c27b9
Lines Changed: +8, -8

3 Modified Paths:

/source/blender/makesrna/intern/rna_wm.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_wm_gizmo.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021