Blender Git Commit Log

Git Commits -> Revision 229b9f1

Revision 229b9f1 by Pablo Dobarro (master)
October 15, 2020, 17:45 (GMT)
Fix brush tip delta orientation with anchored strokes

When using anchored stroke, the stroke operator was modifying the
coordinates on the "mouse" rna property by setting them to the original
position. Because of this, all the sculpt delta calculation was failing
and the delta for these brushes was set randomly (with a 0 vector) at
the beginning of the stroke.
There is now an extra property that uses the unmodified coordinates of
the mouse to calculate the delta. Now delta orientation works as expected
in all brushes and features that require brush tip orientation.

Reviewed By: sergey

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

Commit Details:

Full Hash: 229b9f1299c6739db5c08ce84127e6390c3041ed
Parent Commit: 6991b13
Lines Changed: +18, -3

4 Modified Paths:

/source/blender/editors/sculpt_paint/paint_stroke.c (+3, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+4, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+6, -1) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021