Blender Git Loki

Git Commits -> Revision 6460f4a

Revision 6460f4a by Alexander Gavrilov
January 7, 2021, 18:20 (GMT)
Weight Paint: avoid creating very small values with locked weights.

When painting using Auto-Normalize or Lock Relative with some
groups locked, the locked weights may not add up precisely to
1 because of precision limitations, which results in creating
nonzero weights close to FLT_EPSILON. With Lock Relative display
mode this is very obvious and annoying (random red points amid
black or blue), so add an epsilon check to consider less than
1e-6 unlocked weight to be the same as 0.

In addition, in cases when no weight can be painted due to locks,
don't create vertex group entries at all if they don't exist yet.

Commit Details:

Full Hash: 6460f4ad0273e15032b5812c70e70b31c4099d7b
Parent Commit: d6cc807
Lines Changed: +36, -10

3 Modified Paths:

/source/blender/blenkernel/BKE_deform.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/deform.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+32, -9) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021