[Bf-blender-cvs] [5840c17970a] blender-v2.81-release: Fix T70725: Frame Symmetry Stroke

Jeroen Bakker noreply at git.blender.org
Fri Nov 1 15:11:39 CET 2019


Commit: 5840c17970a0ff746663069b46663e3f55dcc162
Author: Jeroen Bakker
Date:   Thu Oct 31 16:15:22 2019 +0100
Branches: blender-v2.81-release
https://developer.blender.org/rB5840c17970a0ff746663069b46663e3f55dcc162

Fix T70725: Frame Symmetry Stroke

Frame Selected centers around the last valid stroke.
When Symmetry is enabled the last mirrored `location` was added to the
`average_stroke_accum` in stead of the original stroke location.

This patch will add the `true_location` to the `average_stroke_accum`.
This contains the original stroke location.

Issue happened in Vertex and Weight paint.

Reviewed By:
	Pablo Dobarro

Differential Revision: https://developer.blender.org/D6161

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 77c95c6acb3..ac7cf310099 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -2341,7 +2341,7 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
 
   /* calculate pivot for rotation around seletion if needed */
   /* also needed for "View Selected" on last stroke */
-  paint_last_stroke_update(scene, ss->cache->location);
+  paint_last_stroke_update(scene, ss->cache->true_location);
 
   BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
 
@@ -3316,7 +3316,7 @@ static void vpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
 
   /* calculate pivot for rotation around seletion if needed */
   /* also needed for "View Selected" on last stroke */
-  paint_last_stroke_update(scene, ss->cache->location);
+  paint_last_stroke_update(scene, ss->cache->true_location);
 
   ED_region_tag_redraw(vc->ar);



More information about the Bf-blender-cvs mailing list