Fix T56706: Lattice crash when enter in edit mode
authorClément Foucault <foucault.clem@gmail.com>
Thu, 6 Sep 2018 12:27:21 +0000 (14:27 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 6 Sep 2018 13:00:44 +0000 (15:00 +0200)
source/blender/draw/modes/shaders/edit_lattice_overlay_loosevert_vert.glsl

index fba5d604ccf19b3f4d245056d4fc6d03984f2c1f..0cbc66a2b1f7a3a3bfe6caa63821c3e45c9f11c0 100644 (file)
@@ -3,7 +3,6 @@
 
 uniform mat4 ModelViewProjectionMatrix;
 uniform vec2 viewportSize;
-uniform ivec4 dataMask = ivec4(0xFF);
 
 in vec3 pos;
 in int data;
@@ -33,7 +32,7 @@ void main()
        eData1 = eData2 = vec4(1e10);
        eData2.zw = proj(pPos);
 
-       vertFlag = data & dataMask;
+       vertFlag = data;
 
        gl_PointSize = sizeVertex;
        gl_Position = pPos;