Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl')
-rw-r--r--source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl6
1 files changed, 4 insertions, 2 deletions
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 bcfa097b277..e12c48453a7 100644
--- a/source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl
+++ b/source/blender/draw/modes/shaders/armature_shape_outline_geom.glsl
@@ -69,13 +69,15 @@ void main(void)
if (abs(fac0) > 1e-5 && abs(fac3) > 1e-5) {
/* If both adjacent verts are facing the camera the same way,
* then it isn't an outline edge. */
- if (sign(fac0) == sign(fac3))
+ if (sign(fac0) == sign(fac3)) {
return;
+ }
}
/* Don't outline if concave edge. */
- if (dot(n0, v13) > 0.0001)
+ if (dot(n0, v13) > 0.0001) {
return;
+ }
vec2 thick = vColSize[0].w * (lineThickness / viewportSize);
vec2 edge_dir = compute_dir(ssPos[1], ssPos[2]);