Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-25 18:23:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-25 18:23:02 +0400
commit7d0e4ac889af1fcd35f0398651d7fbcf67eaf32c (patch)
tree11e7a9d54d348c06f29d1e1e7f3612d9f4e2b4fc /source/blender/makesdna/DNA_view3d_types.h
parent967154497dea50b75771b5ae3df630d8f739ac13 (diff)
simplify pass drawing, give each pass its own list, avoids some context switching.
- also fixes a problem where xray+transp+alpha1.0 objects wouldnt draw at all. - the patch worked by adding twice but this leaked memory. - solve by adding the xraytransp object to the xray list if the alpha is 1.0
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index c5516a3bff5..520fc56162c 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -185,7 +185,9 @@ typedef struct View3D {
unsigned int customdata_mask;
/* afterdraw, for xray & transparent */
- struct ListBase afterdraw;
+ struct ListBase afterdraw_transp;
+ struct ListBase afterdraw_xray;
+ struct ListBase afterdraw_xraytransp;
/* drawflags, denoting state */
short zbuf, transp, xray;