diff options
author | Antonioya <blendergit@gmail.com> | 2019-04-30 12:59:36 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-04-30 12:59:48 +0300 |
commit | 56fd032393f3cfbd8d648c43e88037fdcf481764 (patch) | |
tree | 39f901f0768954a2c04253ef9c01067d0528aeb4 /source/blender/draw | |
parent | 7a0b3f927cc44c5880c61ed85443fec4de987933 (diff) |
T63854: Grease Pencil strokes appear too thick in the viewport when using texture mode
There was an arbitrary size limit of 4 pixels.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl index 92c9acf1f2a..9fc657a37a7 100644 --- a/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl +++ b/source/blender/draw/engines/gpencil/shaders/gpencil_point_vert.glsl @@ -42,7 +42,7 @@ void main() else { float size = (ProjectionMatrix[3][3] == 0.0) ? (thickness / (gl_Position.z * defaultpixsize)) : (thickness / defaultpixsize); - finalThickness = max(size * objscale, 4.0); /* minimum 4 pixels */ + finalThickness = max(size * objscale, 1.0); /* minimum 1 pixel */ } /* for wireframe override size and color */ |