Sculpt: Fix #106996: Mising null check in BKE_sculpt_update_object_before_eval

This commit is contained in:
Joseph Eagar
2023-04-17 14:05:29 -07:00
parent df096eab77
commit 96fa5fc2b3

View File

@@ -1897,7 +1897,7 @@ void BKE_sculpt_update_object_before_eval(Object *ob_eval)
/* In vertex/weight paint, force maps to be rebuilt. */
BKE_sculptsession_free_vwpaint_data(ob_eval->sculpt);
}
else {
else if (ss->pbvh) {
Vector<PBVHNode *> nodes = blender::bke::pbvh::search_gather(ss->pbvh, nullptr, nullptr);
for (PBVHNode *node : nodes) {