Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMai Lavelle <mai.lavelle@gmail.com>2018-04-10 04:59:54 +0300
committerMai Lavelle <mai.lavelle@gmail.com>2018-04-10 05:03:33 +0300
commitc0ac908fe864a6156a7307859f6b4744f532c927 (patch)
tree2fb1ea1d2ee325bb384f13543aec29d114295858 /source/blender/editors/space_info
parent8d9a5d5062498797572a4d4ccdfd079947d8d148 (diff)
Fix crash when no object is active
Could happen when deleting the active object or opening an old file
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/info_stats.c2
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 157171481bc..c7d4fa1465b 100644
--- a/source/blender/editors/space_info/info_stats.c
+++ b/source/blender/editors/space_info/info_stats.c
@@ -389,7 +389,7 @@ static void stats_update(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 sculpt mode */
stats_object_sculpt_dynamic_topology(ob, &stats);
}