me-main #1

Merged
Nate Rupsis merged 123 commits from me-main into main 2023-02-13 18:39:11 +01:00
Showing only changes of commit 19ea673260 - Show all commits

View File

@ -111,8 +111,8 @@ IndexMask retrieve_selected_points(const Curves &curves_id, Vector<int64_t> &r_i
* If the ".selection" attribute doesn't exist, create it with the requested type (bool or float). * If the ".selection" attribute doesn't exist, create it with the requested type (bool or float).
*/ */
bke::GSpanAttributeWriter ensure_selection_attribute(bke::CurvesGeometry &curves, bke::GSpanAttributeWriter ensure_selection_attribute(bke::CurvesGeometry &curves,
const eAttrDomain selection_domain, eAttrDomain selection_domain,
const eCustomDataType create_type); eCustomDataType create_type);
/** /**
* (De)select all the curves. * (De)select all the curves.
@ -120,7 +120,7 @@ bke::GSpanAttributeWriter ensure_selection_attribute(bke::CurvesGeometry &curves
* \param action: One of SEL_TOGGLE, SEL_SELECT, SEL_DESELECT, or SEL_INVERT. See * \param action: One of SEL_TOGGLE, SEL_SELECT, SEL_DESELECT, or SEL_INVERT. See
* "ED_select_utils.h". * "ED_select_utils.h".
*/ */
void select_all(bke::CurvesGeometry &curves, const eAttrDomain selection_domain, int action); void select_all(bke::CurvesGeometry &curves, eAttrDomain selection_domain, int action);
/** /**
* Select the ends (front or back) of all the curves. * Select the ends (front or back) of all the curves.
@ -143,7 +143,7 @@ void select_linked(bke::CurvesGeometry &curves);
* will be selected, if set to 1.0 everything will be selected. * will be selected, if set to 1.0 everything will be selected.
*/ */
void select_random(bke::CurvesGeometry &curves, void select_random(bke::CurvesGeometry &curves,
const eAttrDomain selection_domain, eAttrDomain selection_domain,
uint32_t random_seed, uint32_t random_seed,
float probability); float probability);
@ -152,18 +152,18 @@ void select_random(bke::CurvesGeometry &curves,
*/ */
bool select_pick(const ViewContext &vc, bool select_pick(const ViewContext &vc,
bke::CurvesGeometry &curves, bke::CurvesGeometry &curves,
const eAttrDomain selection_domain, eAttrDomain selection_domain,
const SelectPick_Params &params, const SelectPick_Params &params,
const int2 coord); int2 coord);
/** /**
* Select points or curves in a (screen-space) rectangle. * Select points or curves in a (screen-space) rectangle.
*/ */
bool select_box(const ViewContext &vc, bool select_box(const ViewContext &vc,
bke::CurvesGeometry &curves, bke::CurvesGeometry &curves,
const eAttrDomain selection_domain, eAttrDomain selection_domain,
const rcti &rect, const rcti &rect,
const eSelectOp sel_op); eSelectOp sel_op);
/** /**
* Select points or curves in a (screen-space) poly shape. * Select points or curves in a (screen-space) poly shape.