diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2016-01-03 01:22:22 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2016-01-03 01:22:22 +0300 |
commit | 09e3ef29c1eeb799f43dc85e97593140282a344f (patch) | |
tree | d5359d1fd3c7bc774a2da1ccba68a6b5dba2e0e6 /source/blender/editors/space_view3d/drawmesh.c | |
parent | c2bd260122c5d05d92a843fb5c3a8b60c7425b73 (diff) |
Get rid of three needless instances of DM_DRAW_OPTION_NO_MCOL.
It would be good to get rid of this entirely, ideally decision
about mcols can be taken at material level and not done per face. More
work needs to be done for that to work though.
Diffstat (limited to 'source/blender/editors/space_view3d/drawmesh.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawmesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c index 5c8c1a42389..c1821be2078 100644 --- a/source/blender/editors/space_view3d/drawmesh.c +++ b/source/blender/editors/space_view3d/drawmesh.c @@ -167,7 +167,7 @@ static DMDrawOption draw_mesh_face_select__drawFaceOptsInv(void *userData, int i MPoly *mpoly = &me->mpoly[index]; if (!(mpoly->flag & ME_HIDE) && !(mpoly->flag & ME_FACE_SEL)) - return DM_DRAW_OPTION_NO_MCOL; /* Don't set color */ + return DM_DRAW_OPTION_NORMAL; else return DM_DRAW_OPTION_SKIP; } @@ -580,7 +580,7 @@ static DMDrawOption draw_tface__set_draw_legacy(MTexPoly *mtexpoly, const bool h glColor3f(1.0, 1.0, 1.0); } } - return DM_DRAW_OPTION_NO_MCOL; /* Don't set color */ + return DM_DRAW_OPTION_NORMAL; /* normal drawing (no mcols anyway, no need to turn off) */ } else { return DM_DRAW_OPTION_NORMAL; /* Set color from mcol */ |