Commit: c63f804222050c189082daf4c02a513876f69b00
Author: Clément Foucault
Date:   Thu Jun 7 13:38:10 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc63f804222050c189082daf4c02a513876f69b00

Armature: Fix flickering outline on planar custom bones.

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

M       source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl

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

diff --git a/source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl 
b/source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl
index 11924b19cf8..4d6f3e94693 100644
--- a/source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl
+++ b/source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl
@@ -69,7 +69,7 @@ void main(void)
                return;
 
        /* Don't outline if concave edge. */
-       if (dot(n0, v13) > 0.0)
+       if (dot(n0, v13) > 0.0001)
                return;
 
        vec2 thick = vColSize[0].w * (lineThickness / viewportSize);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to