[Bf-blender-cvs] [be3fae69840] soc-2021-curves: Fixed bug where move segment gives weird results when adjusted from different 3D views.
dilithjay
noreply at git.blender.org
Sun Dec 5 18:24:45 CET 2021
Commit: be3fae698404f80ed55ca5a7349201c9c5a7037d
Author: dilithjay
Date: Sun Dec 5 22:46:30 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rBbe3fae698404f80ed55ca5a7349201c9c5a7037d
Fixed bug where move segment gives weird
results when adjusted from different 3D views.
===================================================================
M source/blender/editors/curve/editcurve_pen.c
===================================================================
diff --git a/source/blender/editors/curve/editcurve_pen.c b/source/blender/editors/curve/editcurve_pen.c
index abd5f9bdee8..f508ea7ab36 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -776,7 +776,7 @@ static void move_segment(MoveSegmentData *seg_data, const wmEvent *event, ViewCo
float mouse_3d[3];
float depth[3];
/* Use the center of the spline segment as depth. */
- get_bezier_interpolated_point(depth, bezt1, bezt2, 0.5f);
+ get_bezier_interpolated_point(depth, bezt1, bezt2, t);
mouse_location_to_worldspace(event->mval, depth, vc, mouse_3d);
/*
More information about the Bf-blender-cvs
mailing list