EditMesh: Fix uninitialized value causing red outline on edges
authorClément Foucault <foucault.clem@gmail.com>
Wed, 17 Oct 2018 16:49:27 +0000 (18:49 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 17 Oct 2018 16:49:27 +0000 (18:49 +0200)
source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl

index 71525040b94d16930680381ae81efa2697d49a12..908bb531a60a7b24630056e3171c986fad8fdb22 100644 (file)
@@ -167,6 +167,8 @@ void main()
        /* Remember that we are assuming the last vertex
         * of a triangle is the provoking vertex (decide what flat attribs are). */
 
+       flag = eflag;
+
        if ((eflag[2] & EDGE_EXISTS) != 0) {
                /* Do 0 -> 1 edge strip */
                faceColor = vec4(fcol.rgb, 0.0);