[Bf-blender-cvs] [4a1d07cb070] greasepencil-object: GPencil: Cleanup - make function static
Antonio Vazquez
noreply at git.blender.org
Wed Apr 22 18:15:48 CEST 2020
Commit: 4a1d07cb0709f1a6cd67fccf06f17ef4e40ecce1
Author: Antonio Vazquez
Date: Wed Apr 22 18:15:32 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rB4a1d07cb0709f1a6cd67fccf06f17ef4e40ecce1
GPencil: Cleanup - make function static
===================================================================
M source/blender/editors/gpencil/gpencil_utils.c
M source/blender/editors/include/ED_gpencil.h
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 9e32188661e..add08308bad 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2760,7 +2760,7 @@ void ED_gpencil_init_random_settings(Brush *brush,
}
}
-void ED_gpencil_sbuffer_vertex_color_random(
+static void gpencil_sbuffer_vertex_color_random(
bGPdata *gpd, Brush *brush, tGPspoint *tpt, float random_color[3], float pen_pressure)
{
BrushGpencilSettings *brush_settings = brush->gpencil_settings;
@@ -2879,7 +2879,7 @@ void ED_gpencil_sbuffer_vertex_color_set(Depsgraph *depsgraph,
}
/* Random Color. */
- ED_gpencil_sbuffer_vertex_color_random(gpd, brush, tpt, random_color, pen_pressure);
+ gpencil_sbuffer_vertex_color_random(gpd, brush, tpt, random_color, pen_pressure);
/* Copy to eval data because paint operators don't tag refresh until end for speedup
painting. */
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h
index 7aa9f81fc42..75aa2f4df0d 100644
--- a/source/blender/editors/include/ED_gpencil.h
+++ b/source/blender/editors/include/ED_gpencil.h
@@ -329,11 +329,6 @@ void ED_gpencil_sbuffer_vertex_color_set(struct Depsgraph *depsgraph,
struct Material *material,
float random_color[3],
float pen_pressure);
-void ED_gpencil_sbuffer_vertex_color_random(struct bGPdata *gpd,
- struct Brush *brush,
- struct tGPspoint *tpt,
- float random_color[3],
- float pen_pressure);
void ED_gpencil_init_random_settings(struct Brush *brush,
const int mval[2],
struct GpRandomSettings *random_settings);
More information about the Bf-blender-cvs
mailing list