Properly fix T45477
[blender.git] / source / blender / blenkernel / intern / cdderivedmesh.c
index 9307abc8a085ab6fe741a2203c0eaa763df443fa..69c6c4ffceff62d66adb07fac78f3e023211c61f 100644 (file)
@@ -652,7 +652,7 @@ static void cdDM_drawMappedFaces(
        totpoly = dm->getNumPolys(dm);
 
        /* if we do selection, fill the selection buffer color */
-       if (G.f & G_BACKBUFSEL) {
+       if ((G.f & G_BACKBUFSEL) && !(flag & DM_DRAW_SKIP_SELECT)) {
                Mesh *me = userData;
                unsigned int *fi_map;