Blender Git Commit Log

Git Commits -> Revision d96b141

Revision d96b141 by Campbell Barton (master)
September 11, 2020, 10:04 (GMT)
Fix T79464: Crash adding objects without an active screen

Running add-objects operator without an active screen would crash
as CTX_data_edit_object would return NULL in this case.

This could happen when adding objects from frame-change handlers for e.g.

In the case of adding new objects there is no need for a context lookup,
pass this directly to ED_object_editmode_exit_ex.

Commit Details:

Full Hash: d96b141666c17ab2aaba750286b3affc9bef0288
Parent Commit: c27d00c
Lines Changed: +45, -27

4 Modified Paths:

/source/blender/editors/curve/editcurve_add.c (+5, -2) (Diff)
/source/blender/editors/mesh/editmesh_add.c (+1, -1) (Diff)
/source/blender/editors/object/object_add.c (+22, -10) (Diff)
/source/blender/editors/object/object_edit.c (+17, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021