Code cleanup: use named values for options in DerivedMesh drawing.
authorNicholas Bishop <nicholasbishop@gmail.com>
Thu, 8 Mar 2012 06:47:05 +0000 (06:47 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Thu, 8 Mar 2012 06:47:05 +0000 (06:47 +0000)
commit640b0adb9844f506ed68f99f8761a1f4daa288b0
tree957737baac66b88d79f1f24b6d7a262dcbfc4b7e
parentee84084f990da866c15a7b24e7c5945050c4a720
Code cleanup: use named values for options in DerivedMesh drawing.

The DMSetDrawOptions[Tex] callbacks return 0 (skip), 1 (draw), or 2
(either stipple or skip mcols.) In the CDDM, EDDM, and CCGDM draw
functions, as well as the callbacks in drawmesh/drawobject, replace
these numbers with values from an enum, DMDrawOptions.
source/blender/blenkernel/BKE_DerivedMesh.h
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/editderivedmesh.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/editors/space_view3d/drawmesh.c
source/blender/editors/space_view3d/drawobject.c