Blender Git Loki

Git Commits -> Revision d374237

Revision d374237 by Robert Guetzkow (master)
March 17, 2020, 15:46 (GMT)
Fix T74838: fix dereferencing of NULL in sculpt_no_multires_poll when no active object exists

Fix crash when the operator search is used while no active object exists. The cause of the issue is an attempt to dereference `ob` when it is `NULL`. Therefore this patch checks the return value of `SCULPT_mode_poll()` first, to ensure that `ob` isn't `NULL`.

Reviewed By: pablodp606

Maniphest Tasks: T74838

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

Commit Details:

Full Hash: d374237d43728ddc8503629cf1018befba82b81b
Parent Commit: 24e4414
Committed By: Pablo Dobarro
Lines Changed: +2, -3

1 Modified Path:

/source/blender/editors/sculpt_paint/sculpt.c (+2, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021