[Bf-blender-cvs] [b8a0455983c] sculpt-dev: Fix crash in combine proxies
Pablo Dobarro
noreply at git.blender.org
Mon Dec 21 23:58:01 CET 2020
Commit: b8a0455983ca2dafc53ecda21706f8cb151c3965
Author: Pablo Dobarro
Date: Thu Dec 17 19:24:45 2020 +0100
Branches: sculpt-dev
https://developer.blender.org/rBb8a0455983ca2dafc53ecda21706f8cb151c3965
Fix crash in combine proxies
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 24de6acfbc0..1f57678edab 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -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);
More information about the Bf-blender-cvs
mailing list