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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-04-04 14:49:50 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-04-04 14:49:50 +0400
commit0579a6e209fdd1a1deb0c85bf44c0afc443c4a13 (patch)
treebd93c11d60efe6aa6a8c3a1d2502675bcea24427 /source/blender/editors/mask
parent68bc675af45bb35e671020b6de816e5b68dcb82d (diff)
Followup to the previous commit: forgot to tweak handle type
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r--source/blender/editors/mask/mask_ops.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 2abfd9a9ea0..78878ed3e4c 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,