Blender Git Commit Log

Git Commits -> Revision ab320d1

Revision ab320d1 by Alexander Gavrilov
December 24, 2020, 11:43 (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.

Commit Details:

Full Hash: ab320d1ef6bf557171049704f7d4f84015fc9783
Parent Commit: 3068944
Lines Changed: +11, -3

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 (+7, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021