Commit: 0ab153263147fe2a8dbe9ad8e5f83fb7095c2c44
Author: dilithjay
Date: Thu Aug 5 15:23:41 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB0ab153263147fe2a8dbe9ad8e5f83fb7095c2c44
Added comments
===================================================================
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 f1157d4f9b6..3b47331c54c 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -61,8 +61,11 @@ typedef struct CutBeztData {
float mval[2];
} CutBeztData;
+/* Data required segment altering functionality. */
typedef struct MoveSegmentData {
+ /* Nurb being altered. */
Nurb *nu;
+ /* Index of the BezTriple before the segment. */
int bezt_index;
} MoveSegmentData;
@@ -148,6 +151,7 @@ static void free_up_handles_for_movement(BezTriple *bezt,
bool f1, bool f3)
}
}
+/* Move BezTriple to mouse. */
static void move_selected_bezt_to_mouse(BezTriple *bezt, ViewContext *vc,
const wmEvent *event)
{
/* Get mouse location in 3D space. */
@@ -170,6 +174,7 @@ static void move_selected_bezt_to_mouse(BezTriple *bezt,
ViewContext *vc, const
}
}
+/* Move BPoint to mouse. */
static void move_bp_to_mouse(BPoint *bp, const wmEvent *event, const
ViewContext *vc)
{
/* Get mouse location in 3D space. */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs