[Bf-blender-cvs] [f3b140cf0a9] greasepencil-edit-curve: GPencil: Fix lag editing strokes
Antonio Vazquez
noreply at git.blender.org
Tue Aug 11 11:16:15 CEST 2020
Commit: f3b140cf0a9cc31117a5c8d7d29a8e213ddda129
Author: Antonio Vazquez
Date: Tue Aug 11 11:16:08 2020 +0200
Branches: greasepencil-edit-curve
https://developer.blender.org/rBf3b140cf0a9cc31117a5c8d7d29a8e213ddda129
GPencil: Fix lag editing strokes
During the changes for curves, the Hash insert key line was removed by error.
===================================================================
M source/blender/editors/transform/transform_convert_gpencil.c
===================================================================
diff --git a/source/blender/editors/transform/transform_convert_gpencil.c b/source/blender/editors/transform/transform_convert_gpencil.c
index 3b57acda387..5e692798303 100644
--- a/source/blender/editors/transform/transform_convert_gpencil.c
+++ b/source/blender/editors/transform/transform_convert_gpencil.c
@@ -357,7 +357,8 @@ static void createTransGPencil_curves(bContext *C,
/* Update the handle types so transformation is possible */
if (bezt_use && !ELEM(t->mode, TFM_GPENCIL_OPACITY, TFM_GPENCIL_SHRINKFATTEN)) {
- BKE_nurb_bezt_handle_test(bezt, SELECT, handles_visible, use_around_origins_for_handles_test);
+ BKE_nurb_bezt_handle_test(
+ bezt, SELECT, handles_visible, use_around_origins_for_handles_test);
need_handle_recalc = true;
}
}
@@ -748,6 +749,7 @@ void recalcData_gpencil_strokes(TransInfo *t)
bGPDstroke *gps = td->extra;
if ((gps != NULL) && (!BLI_ghash_haskey(strokes, gps))) {
+ BLI_ghash_insert(strokes, gps, gps);
if (is_curve_edit && gps->editcurve != NULL) {
BKE_gpencil_editcurve_recalculate_handles(gps);
gps->flag |= GP_STROKE_NEEDS_CURVE_UPDATE;
More information about the Bf-blender-cvs
mailing list