Fix face mask edge select drawing
authorCampbell Barton <ideasman42@gmail.com>
Fri, 17 May 2019 04:11:22 +0000 (14:11 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 17 May 2019 04:11:22 +0000 (14:11 +1000)
All edges were drawing black.

source/blender/draw/modes/paint_texture_mode.c

index e467606..847d2d2 100644 (file)
@@ -161,7 +161,7 @@ static void PAINT_TEXTURE_engine_init(void *UNUSED(vedata))
                                  datatoc_paint_wire_vert_glsl,
                                  NULL},
         .frag = (const char *[]){datatoc_paint_wire_frag_glsl, NULL},
-        .defs = (const char *[]){sh_cfg_data->def, "#define VERTEX_MODE\n", NULL},
+        .defs = (const char *[]){sh_cfg_data->def, "#define USE_SELECT\n", NULL},
     });
 
     sh_data->face_select_overlay = GPU_shader_create_from_arrays({