Blender Git Loki

Git Commits -> Revision 5f51438

Revision 5f51438 by Pablo Dobarro (master)
August 6, 2020, 15:27 (GMT)
Cleanup: Paint Cursor Refactor

The paint_draw_cursor function was handling the cursor drawing for 2D
and 3D views of all paint modes, calculating the brush radius, updating
the SculptSession data and updating and drawing all sculpt cursor
overlays for different tools. It was almost impossible to understand when
and what was being drawn and in which state the GPU matrix was.

Now everyting is organized into different functions, with clear
separation between modes, sculpt tool overlays and different drawing
setups. Update and drawing functions are also separated (this allows to
skip one PBVH query on each cursor drawing).

Reviewed By: sergey

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

Commit Details:

Full Hash: 5f51438185915a2f45dd2c0ddf2a0773c6c39ffd
Parent Commit: 56af04d
Lines Changed: +656, -455

5 Modified Paths:

/source/blender/editors/sculpt_paint/paint_cursor.c (+639, -452) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+8, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt_cloth.c (+3, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt_multiplane_scrape.c (+5, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021