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:
authorAntonio Vazquez <blendergit@gmail.com>2020-03-18 13:12:11 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-03-18 13:12:11 +0300
commit12720d8b9b3876139bdf5cdf48898b66e4952cf5 (patch)
treebc40ea11c090a125905fcb64d8bf04e0bb593157 /source/blender/draw
parent35019443c0b96f1cb4118ef40fa5052e7bd2a4c9 (diff)
GPencil: Cleanup int comparisons
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
index 93c9fdcecb3..cb34515a960 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
@@ -367,7 +367,7 @@ void stroke_vertex()
bool is_squares = false;
# ifdef GP_MATERIAL_BUFFER_LEN
- if (m != -1.0) {
+ if (m != -1) {
is_dot = GP_FLAG_TEST(MATERIAL(m).flag, GP_STROKE_ALIGNMENT);
is_squares = !GP_FLAG_TEST(MATERIAL(m).flag, GP_STROKE_DOTS);
}
@@ -463,8 +463,8 @@ void stroke_vertex()
strokeThickness = (is_squares) ? 1e18 : (thickness / gl_Position.w);
}
else {
- bool is_stroke_start = (ma.x == -1.0 && x == -1.0);
- bool is_stroke_end = (ma3.x == -1.0 && x == 1.0);
+ bool is_stroke_start = (ma.x == -1 && x == -1);
+ bool is_stroke_end = (ma3.x == -1 && x == 1);
/* Mitter tangent vector. */
vec2 miter_tan = safe_normalize(line_adj + line);