Commit: 09e3ef29c1eeb799f43dc85e97593140282a344f
Author: Antony Riakiotakis
Date:   Sat Jan 2 23:22:22 2016 +0100
Branches: master
https://developer.blender.org/rB09e3ef29c1eeb799f43dc85e97593140282a344f

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.

===================================================================

M       source/blender/editors/space_view3d/drawmesh.c
M       
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp

===================================================================

diff --git a/source/blender/editors/space_view3d/drawmesh.c 
b/source/blender/editors/space_view3d/drawmesh.c
index 5c8c1a4..c1821be 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 */
diff --git 
a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp 
b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
index 400fa6a..1589bc7 100644
--- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
+++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp
@@ -776,7 +776,7 @@ static DMDrawOption CheckTexDM(MTexPoly *mtexpoly, const 
bool has_mcol, int matn
                        unsigned char rgba[4];
                        current_polymat->GetMaterialRGBAColor(rgba);
                        glColor4ubv((const GLubyte *)rgba);
-                       return DM_DRAW_OPTION_NO_MCOL;
+                       return DM_DRAW_OPTION_NORMAL;
                }
                return DM_DRAW_OPTION_NORMAL;
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to