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:
authorAntonio Vazquez <blendergit@gmail.com>2020-08-12 17:14:57 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-08-12 23:47:56 +0300
commit3d247abb782b23316ff3c5deed0826ad6d14ddc1 (patch)
tree2602b8ab5cb149016ad8ed0a555a868b4242c809 /source/blender/blenkernel/intern/gpencil_curve.c
parent145445c6b46229c6413711d300187f61ffb9f22a (diff)
GPencil: Remove unused lines
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil_curve.c')
-rw-r--r--source/blender/blenkernel/intern/gpencil_curve.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/source/blender/blenkernel/intern/gpencil_curve.c b/source/blender/blenkernel/intern/gpencil_curve.c
index d7021c664c2..044cc0164cf 100644
--- a/source/blender/blenkernel/intern/gpencil_curve.c
+++ b/source/blender/blenkernel/intern/gpencil_curve.c
@@ -228,20 +228,6 @@ static int gpencil_get_stroke_material_fromcurve(Main *bmain,
float color_stroke[4] = {0.0f, 0.0f, 0.0f, 0.0f};
float color_fill[4] = {0.0f, 0.0f, 0.0f, 0.0f};
- /* Check if grease pencil has a material with same color.*/
- float color[4];
- if ((cu->mat) && (*cu->mat)) {
- Material *mat_cu = *cu->mat;
- copy_v4_v4(color, &mat_cu->r);
- }
- else {
- /* Gray (unassigned from SVG add-on) */
- zero_v4(color);
- add_v3_fl(color, 0.6f);
- color[3] = 1.0f;
- do_fill = false;
- }
-
/* If the curve has 2 materials, the first is considered as Fill and the second as Stroke.
* If the has only one material, if the name contains _stroke, the is used
* as stroke, else as fill.*/
@@ -268,6 +254,7 @@ static int gpencil_get_stroke_material_fromcurve(Main *bmain,
}
else {
/* No materials in the curve. */
+ *do_fill = false;
return -1;
}