Fix crash in combine proxies

This commit is contained in:
Pablo Dobarro 2020-12-17 19:24:45 +01:00
parent 6145a6bc6c
commit b8a0455983
1 changed files with 1 additions and 1 deletions

View File

@ -6360,7 +6360,7 @@ static void sculpt_combine_proxies_task_cb(void *__restrict userdata,
add_v3_v3(val, proxies[p].co[vd.i]);
}
if (ss->filter_cache->cloth_sim) {
if (ss->filter_cache && ss->filter_cache->cloth_sim) {
/* When there is a simulation running in the filter cache that was created by a tool, combine
* the proxies into the simulation instead of directly into the mesh. */
SCULPT_clip(sd, ss, ss->filter_cache->cloth_sim->pos[vd.index], val);