[Bf-blender-cvs] [40d374631d8] soc-2021-curves: BPoint cut change

dilithjay noreply at git.blender.org
Sat Nov 6 08:45:15 CET 2021


Commit: 40d374631d8e6b2bd915501bb551a4ebf7c5c4c7
Author: dilithjay
Date:   Sat Nov 6 08:31:46 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB40d374631d8e6b2bd915501bb551a4ebf7c5c4c7

BPoint cut change

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

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 2e2d3dfb4e0..d109bb6351f 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -526,15 +526,11 @@ static void update_data_for_all_nurbs(const ListBase *nurbs, const ViewContext *
     }
     else if (nu->bp) {
       float screen_co[2];
-      if (ED_view3d_project_float_object(vc->region,
-                                         nu->bp->vec,
-                                         screen_co,
-                                         V3D_PROJ_TEST_CLIP_BB | V3D_PROJ_TEST_CLIP_WIN) ==
-          V3D_PROJ_RET_OK) {
-        if (data->nurb == NULL) {
-          assign_cut_data(
-              data, len_manhattan_v2v2(screen_co, data->mval), nu, -1, 0, 0.0f, nu->bp->vec);
-        }
+      if (data->nurb == NULL) {
+        ED_view3d_project_float_object(
+            vc->region, nu->bp->vec, screen_co, V3D_PROJ_TEST_CLIP_BB | V3D_PROJ_TEST_CLIP_WIN);
+        assign_cut_data(
+            data, len_manhattan_v2v2(screen_co, data->mval), nu, -1, 0, 0.0f, nu->bp->vec);
       }
 
       for (int i = 0; i < nu->pntsu - 1; i++) {



More information about the Bf-blender-cvs mailing list