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:
authorClément Foucault <foucault.clem@gmail.com>2022-03-31 20:14:24 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-03-31 20:14:31 +0300
commit42853bacc9734f6559d8429b2001039e81d11c17 (patch)
tree6fc7ab4d7ac200d6db9002715821cac99b10aa77 /source/blender/draw/engines
parentce5428b2946dd772f2a801a70778da853c683978 (diff)
GPencil: Fix regression with dots uvs
This was introduced by rBeccb0b222e3465baa71430223c5ee2f0206a7b02.
Diffstat (limited to 'source/blender/draw/engines')
-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)) {