Blender Git Loki

Git Commits -> Revision 009dde6

Revision 009dde6 by Pablo Dobarro (master)
April 2, 2020, 13:43 (GMT)
Fix Face Sets painting and selection precision

This fixes the following issues:
- Previously, the face set from the active vertex was used directly. Vertices always return the most recently created face set, so in some cases there may be some face sets that were not possible to select as active. Now the active face set is set in the ray intersection, so it always matches the face under the cursor.
- When drawing face sets they were set per vertex, so it was not possible to paint one face at a time. Now face sets are painted per poly when using the brush on meshes, testing the distance to the center of each poly.
- The code for the active vertex on PBVH_GRIDS was not correct, so I also fixed that to test if everything was working correctly.
{F8441699}

Reviewed By: jbakker

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

Commit Details:

Full Hash: 009dde69cde0030ab3048f17a55a826d1aeb8423
Parent Commit: 6cc4c68
Lines Changed: +98, -17

4 Modified Paths:

/source/blender/blenkernel/BKE_paint.h (+3, -0) (Diff)
/source/blender/blenkernel/BKE_pbvh.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+16, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+78, -15) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021