[Bf-blender-cvs] [4f57d6db94b] greasepencil-object: GPencil: Fix sbuffer stroke not overlapping with previous stroke
Clément Foucault
noreply at git.blender.org
Thu Feb 13 15:53:42 CET 2020
Commit: 4f57d6db94b74747f20179783c98797265f65062
Author: Clément Foucault
Date: Thu Feb 13 15:53:27 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB4f57d6db94b74747f20179783c98797265f65062
GPencil: Fix sbuffer stroke not overlapping with previous stroke
===================================================================
M source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
===================================================================
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 29fa893afbf..040d5ff64fb 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
@@ -505,7 +505,7 @@ void stroke_vertex()
else if (GP_FLAG_TEST(MATERIAL(m).flag, GP_STROKE_OVERLAP)) {
/* Use the index of the point as depth.
* This means the stroke can overlap itself. */
- depth = (point_id1 + 1.0) * 0.0000002;
+ depth = (point_id1 + strokeIndexOffset + 1.0) * 0.0000002;
}
# endif
else {
More information about the Bf-blender-cvs
mailing list