[Bf-blender-cvs] [83bdbf2607e] soc-2021-curves: Fixed build warnings
dilithjay
noreply at git.blender.org
Sun Jan 2 11:03:17 CET 2022
Commit: 83bdbf2607e45119d3614bc7f159f2a5ec26f4a0
Author: dilithjay
Date: Sun Jan 2 00:20:01 2022 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB83bdbf2607e45119d3614bc7f159f2a5ec26f4a0
Fixed build warnings
===================================================================
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 14842c033c7..cb446496be6 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -148,6 +148,8 @@ static bool worldspace_to_screenspace_int(const float pos_3d[3],
const bool check = worldspace_to_screenspace(pos_3d, vc, pos_2d_fl);
r_pos_2d[0] = (int)pos_2d_fl[0];
r_pos_2d[1] = (int)pos_2d_fl[1];
+
+ return check;
}
/* Move the handle of the newly added #BezTriple to mouse. */
@@ -265,7 +267,9 @@ static void move_bp_to_location(BPoint *bp, const int mval[2], const ViewContext
copy_v3_v3(bp->vec, location);
}
-static void move_all_selected_points(ListBase *editnurb, wmEvent *event, const ViewContext *vc)
+static void move_all_selected_points(ListBase *editnurb,
+ const wmEvent *event,
+ const ViewContext *vc)
{
int change[2];
sub_v2_v2v2_int(change, event->xy, event->prev_xy);
More information about the Bf-blender-cvs
mailing list