Page MenuHome

Select similar operator for curves
AbandonedPublic

Authored by Julian Eisel (Severin) on Apr 5 2014, 3:54 AM.

Diff Detail

Event Timeline

source/blender/editors/curve/editcurve.c
6274

every usage of select_bpoint() or select_beztriple() gives me the following warning!
/home/walid3/Programmes/blender_git/master/source/blender/editors/curve/editcurve.c:6274: warning: the address of 'select' will always evaluate as 'true' [-Waddress]

select_bpoint(bp, select, SELECT, VISIBLE);
^

Should we really have a threshold or compare is just enough?

Note: there are always an instance of code for bezier and another for pboints, that could be eliminated at the cost of introducing checks in the while loops :/, if there's a better practice to follow that would be great.

Walid Shouman (walid) updated this revision to Unknown Object (????).Apr 5 2014, 4:19 AM
  • Directly using the SELECT flag (shutting down the warnings)
Walid Shouman (walid) updated this revision to Unknown Object (????).Apr 6 2014, 11:35 AM
  • Change the operator type from Size to Weight
  • Unify the align behavior in Beztriple and BPoint
source/blender/editors/curve/editcurve.c
5916

this could be taken to another deeper level to be recognized over objects/metaballs/armature ...
if that's desired, where to move it?

is it bettter to move both ED_curve_direction_bezt() and ED_curve_direction_bp() to curve.c?

Campbell Barton (campbellbarton) requested changes to this revision.Apr 22 2014, 8:23 AM
  • needs key shortcut - WM_keymap_add_item(keymap, "CURVE_OT_select_similar", GKEY, KM_PRESS, KM_SHIFT, 0);
  • needs menu item
  • only compares to points within the spline, I think it should compare with all points in the curve.
  • comparing the Tilt fails, I added a path and tried to select similar tilt.
Julian Eisel (Severin) commandeered this revision.Jul 4 2015, 6:38 PM

There hasn't been any activity on this for a while, so closing this.

Note: A new patch for this is in D1381 (heavily based on this one).