Fix T84031 initialize connectivity info of the base mesh before using Displacement Smear brush.

Reviewed By: pablodp606

Maniphest Tasks: T84031

Differential Revision: https://developer.blender.org/D9956
This commit is contained in:
Greg Neumiller 2021-01-25 21:08:37 +01:00 committed by Pablo Dobarro
parent aa030d3459
commit c134d7437d
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #84031, Multires Displacement Smear brush crashes Blender when you use it on a mesh without Multires subdivisions
1 changed files with 2 additions and 1 deletions

View File

@ -7237,7 +7237,8 @@ static bool sculpt_needs_connectivity_info(const Sculpt *sd,
(brush->sculpt_tool == SCULPT_TOOL_BOUNDARY) ||
(brush->sculpt_tool == SCULPT_TOOL_SLIDE_RELAX) ||
(brush->sculpt_tool == SCULPT_TOOL_CLOTH) || (brush->sculpt_tool == SCULPT_TOOL_SMEAR) ||
(brush->sculpt_tool == SCULPT_TOOL_DRAW_FACE_SETS));
(brush->sculpt_tool == SCULPT_TOOL_DRAW_FACE_SETS) ||
(brush->sculpt_tool == SCULPT_TOOL_DISPLACEMENT_SMEAR));
}
void SCULPT_stroke_modifiers_check(const bContext *C, Object *ob, const Brush *brush)