diff options
author | Robert Guetzkow <rjg> | 2020-03-17 18:44:29 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-03-17 18:46:55 +0300 |
commit | d374237d43728ddc8503629cf1018befba82b81b (patch) | |
tree | 0dc88abf9781c141469fea2ec2ea37bc09a55427 /source/blender/blenkernel/BKE_ocean.h | |
parent | 24e44143a192053f552e4c4b1655146be3aaed61 (diff) |
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
Diffstat (limited to 'source/blender/blenkernel/BKE_ocean.h')
0 files changed, 0 insertions, 0 deletions