diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-12-01 12:24:17 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2020-12-01 12:27:51 +0300 |
commit | edf109517648f149724a5fdc1797b3ce694b28c7 (patch) | |
tree | a17f036b9bb112989a050a3b56ae0c7b9c0cdade /source/blender/editors/space_info | |
parent | 645c2bd4d002d685cf240d6a46c635c00c0c1706 (diff) |
Fix T83275: Crash with scene statics and empty scene
ob can be NULL, so it needs to be checked before accessing ob->mode
Differential Revision: https://developer.blender.org/D9680
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index 43d0d4fc425..71144fa11d0 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -405,7 +405,7 @@ static void stats_update(Depsgraph *depsgraph, ViewLayer *view_layer) /* Pose Mode */ stats_object_pose(ob, &stats); } - else if (stats_is_object_dynamic_topology_sculpt(ob, ob->mode)) { + else if (ob && stats_is_object_dynamic_topology_sculpt(ob, ob->mode)) { /* Dynamic topology. Do not count all vertices, dynamic topology stats are initialized later as * part of sculpt stats. */ } |