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
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-10-22 18:05:47 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-10-22 18:05:47 +0300
commita8837c6cb0d4410a1d20c5cd5ec7da974036883f (patch)
tree3d09155510d16efe1af0dd7f4bb5f40137ba0045 /source
parentcd7354f9f597d8de7e37bb34e82d896e6bf270e5 (diff)
parent5b35f1ed2b8362bbf6935b1df2829df00aef0b72 (diff)
Merge branch 'blender-v2.91-release'
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/gpencil_trace_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_trace_utils.c b/source/blender/editors/gpencil/gpencil_trace_utils.c
index 05973afe80c..544cb4fef1e 100644
--- a/source/blender/editors/gpencil/gpencil_trace_utils.c
+++ b/source/blender/editors/gpencil/gpencil_trace_utils.c
@@ -294,7 +294,7 @@ void ED_gpencil_trace_data_to_strokes(Main *bmain,
n = path->curve.n;
tag = path->curve.tag;
c = path->curve.c;
- int mat_idx = path->sign == '+' ? 0 : 1;
+ int mat_idx = path->sign == '+' ? mat_fill_idx : mat_mask_idx;
/* Create a new stroke. */
bGPDstroke *gps = BKE_gpencil_stroke_add(gpf, mat_idx, 0, thickness, false);
/* Last point that is equals to start point. */