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
This commit is contained in:

committed by
Dalai Felinto

parent
645c2bd4d0
commit
edf1095176
Submodule release/scripts/addons updated: 866dcad5aa...ca74197440
@@ -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. */
|
||||
}
|
||||
|
Submodule source/tools updated: d7d7e9d41f...7011d02c29
Reference in New Issue
Block a user