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:
authorCampbell Barton <ideasman42@gmail.com>2018-08-27 04:46:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-27 04:46:28 +0300
commitd06e340d3daaf71e5a183da032f07c9c621dc9b8 (patch)
tree24d64ac5b8e5d6869aa3fe09526effb40f819883 /source/blender/editors/gpencil/gpencil_interpolate.c
parentf8c857ad72e29eb509bd04067f94cd3df8a54aa4 (diff)
Cleanup: warning, use const args
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_interpolate.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_interpolate.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c
index ccf600a2584..1b7acbd4132 100644
--- a/source/blender/editors/gpencil/gpencil_interpolate.c
+++ b/source/blender/editors/gpencil/gpencil_interpolate.c
@@ -110,16 +110,14 @@ static bool gpencil_view3d_poll(bContext *C)
}
/* Perform interpolation */
-static void gp_interpolate_update_points(bGPDstroke *gps_from, bGPDstroke *gps_to, bGPDstroke *new_stroke, float factor)
+static void gp_interpolate_update_points(
+ const bGPDstroke *gps_from, const bGPDstroke *gps_to, bGPDstroke *new_stroke, float factor)
{
- bGPDspoint *prev, *pt, *next;
- MDeformVert *dvert;
-
/* update points */
for (int i = 0; i < new_stroke->totpoints; i++) {
- prev = &gps_from->points[i];
- pt = &new_stroke->points[i];
- next = &gps_to->points[i];
+ const bGPDspoint *prev = &gps_from->points[i];
+ const bGPDspoint *next = &gps_to->points[i];
+ bGPDspoint *pt = &new_stroke->points[i];
/* Interpolate all values */
interp_v3_v3v3(&pt->x, &prev->x, &next->x, factor);
@@ -128,9 +126,11 @@ static void gp_interpolate_update_points(bGPDstroke *gps_from, bGPDstroke *gps_t
CLAMP(pt->strength, GPENCIL_STRENGTH_MIN, 1.0f);
/* GPXX interpolate dverts */
- //dvert = &new_stroke->dvert[i];
- //dvert->totweight = 0;
- //dvert->dw = NULL;
+#if 0
+ MDeformVert *dvert = &new_stroke->dvert[i];
+ dvert->totweight = 0;
+ dvert->dw = NULL;
+#endif
}
}