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/engines/gpencil/shaders/gpencil_vert.glsl')
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl
index c0ff8d945f2..af8aec85598 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl
@@ -61,7 +61,9 @@ void main()
gp_interp.hardness);
if (GPENCIL_IS_STROKE_VERTEX) {
- gp_interp.uv.x *= gp_mat._stroke_u_scale;
+ if (!flag_test(gp_flag, GP_STROKE_ALIGNMENT)) {
+ gp_interp.uv.x *= gp_mat._stroke_u_scale;
+ }
/* Special case: We don't use vertex color if material Holdout. */
if (flag_test(gp_flag, GP_STROKE_HOLDOUT)) {