[Bf-blender-cvs] [0579a6e] master: Followup to the previous commit: forgot to tweak handle type

Sergey Sharybin noreply at git.blender.org
Fri Apr 4 12:50:14 CEST 2014


Commit: 0579a6e209fdd1a1deb0c85bf44c0afc443c4a13
Author: Sergey Sharybin
Date:   Fri Apr 4 16:49:50 2014 +0600
https://developer.blender.org/rB0579a6e209fdd1a1deb0c85bf44c0afc443c4a13

Followup to the previous commit: forgot to tweak handle type

===================================================================

M	source/blender/editors/mask/mask_ops.c

===================================================================

diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 2abfd9a..78878ed 100644
--- a/source/blender/editors/mask/mask_ops.c
+++ b/source/blender/editors/mask/mask_ops.c
@@ -1245,6 +1245,13 @@ static int slide_spline_curvature_modal(bContext *C, wmOperator *op, const wmEve
 					interp_v2_v2v2(slide_data->P2, slide_data->P2, solution, weight);
 					copy_v2_v2(slide_data->other_bezt->vec[0], slide_data->P2);
 					need_restore_P2 = true;
+
+					/* Tweak handle type in order to be able to apply the delta. */
+					if (weight > 0.0f) {
+						if (slide_data->other_bezt->h1 <= HD_VECT) {
+							slide_data->other_bezt->h1 = HD_FREE;
+						}
+					}
 				}
 
 				slide_spline_solve_P1(u, B,
@@ -1276,6 +1283,13 @@ static int slide_spline_curvature_modal(bContext *C, wmOperator *op, const wmEve
 					interp_v2_v2v2(slide_data->P1, slide_data->P1, solution, weight);
 					copy_v2_v2(slide_data->other_bezt->vec[2], slide_data->P1);
 					need_restore_P1 = true;
+
+					/* Tweak handle type in order to be able to apply the delta. */
+					if (weight > 0.0f) {
+						if (slide_data->other_bezt->h2 <= HD_VECT) {
+							slide_data->other_bezt->h2 = HD_FREE;
+						}
+					}
 				}
 
 				slide_spline_solve_P2(u, B,




More information about the Bf-blender-cvs mailing list