Fix T68763: Smooth Brush not working in LookDev or Rendered Mode
Reviewed By: brecht Differential Revision: https://developer.blender.org/D5585
This commit is contained in:
parent
87cafe92ce
commit
8e4f3b2bb0
Notes:
blender-bot
2023-02-14 08:28:46 +01:00
Referenced by issue #68763, Smooth Brush not working in LookDev or Rendered Mode
|
@ -5154,10 +5154,11 @@ static bool sculpt_any_smooth_mode(const Brush *brush, StrokeCache *cache, int s
|
|||
static void sculpt_stroke_modifiers_check(const bContext *C, Object *ob, const Brush *brush)
|
||||
{
|
||||
SculptSession *ss = ob->sculpt;
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
|
||||
if (ss->kb || ss->modifiers_active) {
|
||||
bool need_pmap = sculpt_any_smooth_mode(brush, ss->cache, 0);
|
||||
if (ss->kb || ss->modifiers_active || (!BKE_sculptsession_use_pbvh_draw(ob, v3d) && need_pmap)) {
|
||||
Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C);
|
||||
bool need_pmap = sculpt_any_smooth_mode(brush, ss->cache, 0);
|
||||
BKE_sculpt_update_object_for_edit(depsgraph, ob, need_pmap, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue