[Bf-blender-cvs] [afcb34428c7] sculpt-dev: Sculpt: fix broken view3d.view_selected in sculpt mode
Joseph Eagar
noreply at git.blender.org
Thu Sep 30 07:17:13 CEST 2021
Commit: afcb34428c7ae1f420955d7d32f00ab385732e80
Author: Joseph Eagar
Date: Wed Sep 29 22:16:47 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rBafcb34428c7ae1f420955d7d32f00ab385732e80
Sculpt: fix broken view3d.view_selected in
sculpt mode
===================================================================
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 5f981f3e0ac..c3f6c352261 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -8694,6 +8694,17 @@ void do_brush_action(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSettings
SCULPT_run_command_list(sd, ob, brush, ss->cache->commandlist, ups);
+ float location[3];
+
+ /* Update average stroke position. */
+ copy_v3_v3(location, ss->cache->true_location);
+ mul_m4_v3(ob->obmat, location);
+
+ add_v3_v3(ups->average_stroke_accum, location);
+ ups->average_stroke_counter++;
+ /* Update last stroke position. */
+ ups->last_stroke_valid = true;
+
return;
}
More information about the Bf-blender-cvs
mailing list