Commit: 7bf49902394887750f8858e4785d10939e17cefd
Author: dilithjay
Date:   Fri Nov 5 18:54:39 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB7bf49902394887750f8858e4785d10939e17cefd

Fixed bug with making cuts near a point

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

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 e058524518c..6509e54c307 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -514,13 +514,11 @@ static void update_data_for_all_nurbs(const ListBase 
*nurbs, const ViewContext *
     if (nu->bezt) {
       float screen_co[2];
       if (data->nurb == NULL) {
-        if (ED_view3d_project_float_object(vc->region,
-                                           nu->bezt->vec[1],
-                                           screen_co,
-                                           V3D_PROJ_TEST_CLIP_BB | 
V3D_PROJ_TEST_CLIP_WIN) ==
-            V3D_PROJ_RET_OK) {
-          assign_cut_data(data, FLT_MAX, nu, 0, -1, 0.0f, nu->bezt->vec[1]);
-        }
+        ED_view3d_project_float_object(vc->region,
+                                       nu->bezt->vec[1],
+                                       screen_co,
+                                       V3D_PROJ_TEST_CLIP_BB | 
V3D_PROJ_TEST_CLIP_WIN);
+        assign_cut_data(data, FLT_MAX, nu, 0, -1, 0.0f, nu->bezt->vec[1]);
       }
 
       BezTriple *bezt = NULL;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to