Cleanup: comment blocks
This commit is contained in:
@@ -528,15 +528,15 @@ static void gp_draw_stroke_fill(
|
||||
}
|
||||
else {
|
||||
/* As an initial implementation, we use the OpenGL filled polygon drawing
|
||||
* here since it's the easiest option to implement for this case. It does
|
||||
* come with limitations (notably for concave shapes), though it shouldn't
|
||||
* be much of an issue in most cases.
|
||||
*
|
||||
* We keep this legacy implementation around despite now having the high quality
|
||||
* fills, as this is necessary for keeping everything working nicely for files
|
||||
* created using old versions of Blender which may have depended on the artifacts
|
||||
* the old fills created.
|
||||
*/
|
||||
* here since it's the easiest option to implement for this case. It does
|
||||
* come with limitations (notably for concave shapes), though it shouldn't
|
||||
* be much of an issue in most cases.
|
||||
*
|
||||
* We keep this legacy implementation around despite now having the high quality
|
||||
* fills, as this is necessary for keeping everything working nicely for files
|
||||
* created using old versions of Blender which may have depended on the artifacts
|
||||
* the old fills created.
|
||||
*/
|
||||
bGPDspoint *pt;
|
||||
|
||||
glBegin(GL_POLYGON);
|
||||
|
||||
@@ -297,9 +297,9 @@ static bool gp_brush_strength_apply(
|
||||
float inf;
|
||||
|
||||
/* Compute strength of effect
|
||||
* - We divide the strength by 10, so that users can set "sane" values.
|
||||
* Otherwise, good default values are in the range of 0.093
|
||||
*/
|
||||
* - We divide the strength by 10, so that users can set "sane" values.
|
||||
* Otherwise, good default values are in the range of 0.093
|
||||
*/
|
||||
inf = gp_brush_influence_calc(gso, radius, co) / 10.0f;
|
||||
|
||||
/* apply */
|
||||
|
||||
@@ -1005,9 +1005,9 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
|
||||
BLI_strncpy(gps->colorname, palcolor->info, sizeof(gps->colorname));
|
||||
|
||||
/* add stroke to frame, usually on tail of the listbase, but if on back is enabled the stroke is added on listbase head
|
||||
* because the drawing order is inverse and the head stroke is the first to draw. This is very useful for artist
|
||||
* when drawing the background
|
||||
*/
|
||||
* because the drawing order is inverse and the head stroke is the first to draw. This is very useful for artist
|
||||
* when drawing the background
|
||||
*/
|
||||
if ((ts->gpencil_flags & GP_TOOL_FLAG_PAINT_ONBACK) && (p->paintmode != GP_PAINTMODE_DRAW_POLY)) {
|
||||
BLI_addhead(&p->gpf->strokes, gps);
|
||||
}
|
||||
|
||||
@@ -830,8 +830,8 @@ bool gp_smooth_stroke_strength(bGPDstroke *gps, int i, float inf)
|
||||
ptc = &gps->points[after];
|
||||
|
||||
/* the optimal value is the corresponding to the interpolation of the strength
|
||||
* at the distance of point b
|
||||
*/
|
||||
* at the distance of point b
|
||||
*/
|
||||
const float fac = line_point_factor_v3(&ptb->x, &pta->x, &ptc->x);
|
||||
const float optimal = (1.0f - fac) * pta->strength + fac * ptc->strength;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user