Blender Git Commit Log

Git Commits -> Revision 0da3e97

Revision 0da3e97 by Antonis Ryakiotakis (master)
March 21, 2014, 18:37 (GMT)
Fix T39279 Vertex paint modes do not work well with mirror modifier

Issue here is that coordinates used for projection would not fit the
closest candidate. So it was possible to paint against the mirrored part
of the mesh, which would get clipped on reprojection.

Fix avoids reprojection by storing squared distance, and screen space
coordinates, which we will need again later anyway. Also we now always
paint against the closest vertex always. This is ensured because squared
distances for uninitialized vertices will be MAXFLOAT, thus failing the
strength test.

Commit Details:

Full Hash: 0da3e974338b3971e9a4982b2fbf59579b232cff
Parent Commit: 44dc723
Lines Changed: +82, -88

3 Modified Paths:

/source/blender/editors/sculpt_paint/paint_intern.h (+7, -3) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+34, -43) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex_proj.c (+41, -42) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021