Fix crash in combine proxies
This commit is contained in:
parent
6145a6bc6c
commit
b8a0455983
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue