Fix: compile error in debug build

Caused by 8bf73a7a97
This commit is contained in:
Jacques Lucke
2023-12-18 22:46:18 +01:00
parent 4ee151e204
commit e51126500e

View File

@@ -1214,7 +1214,7 @@ void multires_stitch_grids(Object *ob)
if (subdiv_ccg == nullptr) {
return;
}
BLI_assert(BKE_pbvh_type(pbvh) == PBVH_GRIDS);
BLI_assert(sculpt_session->pbvh && BKE_pbvh_type(sculpt_session->pbvh) == PBVH_GRIDS);
BKE_subdiv_ccg_average_stitch_faces(*subdiv_ccg, IndexMask(subdiv_ccg->faces.size()));
}