Blender Git Loki

Git Commits -> Revision c2d5c72

Revision c2d5c72 by Brecht Van Lommel (master)
April 25, 2013, 14:16 (GMT)
Fix part of #34640: colors darkening when using the vertex paint blur tool.

The problem was that vertex colors only have 8 bits of precision, and integer
division always rounds down, so after some color blending iterations everything
gets darker. Instead use integer division that behaves like round() instead of
floor() for blending operations.

Commit Details:

Full Hash: c2d5c72245cfebb612ccb11c60777262c9c5994a
SVN Revision: 56293
Parent Commit: 631f2b9
Lines Changed: +62, -49

4 Modified Paths:

/source/blender/blenlib/BLI_math_base.h (+2, -0) (Diff)
/source/blender/blenlib/intern/math_base_inline.c (+7, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+36, -33) (Diff)
/source/blender/imbuf/intern/rectop.c (+17, -16) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021