Blender Git Loki

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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021