Blender Git Commit Log
Git Commits -> Revision 925f213
Revision 925f213 by Nicholas Bishop (master) March 7, 2012, 12:48 (GMT) |
Code cleanup: simplify the DerivedMesh.drawMappedFaces interface. This function pointer's 'setDrawOptions' parameter took a slightly different type than the other drawing callbacks. In particular, it could set a 'drawSmooth' value to indicate that smoothing should always be enabled, overriding the face flag. However, all callbacks either did not set this value, or set it unconditionally to 1. Replaced this by adding a new 'flag' parameter to drawFacesMapped, which can be set to DM_DRAW_ALWAYS_SMOOTH where appropriate. Also removed the 'useColors' parameter and replaced it with another flag value, DM_DRAW_USE_COLORS. Removed the 'wpaint__setSolidDrawOptions' callback, was only being used to set the shading to smooth. |
Commit Details:
Full Hash: 925f21342709522afa334218e97e0b31f87f1516
SVN Revision: 44701
Parent Commit: 43711d8
Lines Changed: +48, -44
6 Modified Paths:
/source/blender/blenkernel/BKE_DerivedMesh.h (+8, -3) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+7, -6) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+7, -6) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+6, -4) (Diff)
/source/blender/editors/space_view3d/drawmesh.c (+5, -8) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+15, -17) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+7, -6) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+7, -6) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+6, -4) (Diff)
/source/blender/editors/space_view3d/drawmesh.c (+5, -8) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+15, -17) (Diff)