[Bf-blender-cvs] [dc255302a4a] greasepencil-edit-curve: GPencil: Fix parameter list after merge
Antonio Vazquez
noreply at git.blender.org
Mon Sep 28 17:33:15 CEST 2020
Commit: dc255302a4afdca38113948fd30a82d5e52f4441
Author: Antonio Vazquez
Date: Mon Sep 28 17:33:07 2020 +0200
Branches: greasepencil-edit-curve
https://developer.blender.org/rBdc255302a4afdca38113948fd30a82d5e52f4441
GPencil: Fix parameter list after merge
===================================================================
M source/blender/editors/gpencil/gpencil_trace_utils.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_trace_utils.c b/source/blender/editors/gpencil/gpencil_trace_utils.c
index 05973afe80c..c9ad4c2b37a 100644
--- a/source/blender/editors/gpencil/gpencil_trace_utils.c
+++ b/source/blender/editors/gpencil/gpencil_trace_utils.c
@@ -352,13 +352,14 @@ void ED_gpencil_trace_data_to_strokes(Main *bmain,
* long stroke. Here the length is checked and removed if the length is too big. */
float length = BKE_gpencil_stroke_length(gps, true);
if (length <= MAX_LENGTH) {
+ bGPdata *gpd = ob->data;
if (sample > 0.0f) {
/* Resample stroke. Don't need to call to BKE_gpencil_stroke_geometry_update() because
* the sample function already call that. */
- BKE_gpencil_stroke_sample(gps, sample, false);
+ BKE_gpencil_stroke_sample(gpd, gps, sample, false);
}
else {
- BKE_gpencil_stroke_geometry_update(gps);
+ BKE_gpencil_stroke_geometry_update(gpd, gps);
}
}
else {
More information about the Bf-blender-cvs
mailing list