Curves: Add remove_selection function #104813
|
@ -1097,7 +1097,6 @@ static int delete_exec(bContext *C, wmOperator * /*op*/)
|
|||
{
|
||||
for (Curves *curves_id : get_unique_editable_curves(*C)) {
|
||||
bke::CurvesGeometry &curves = curves_id->geometry.wrap();
|
||||
|
||||
if (remove_selection(curves, eAttrDomain(curves_id->selection_domain))) {
|
||||
filedescriptor marked this conversation as resolved
|
||||
DEG_id_tag_update(&curves_id->id, ID_RECALC_GEOMETRY);
|
||||
WM_event_add_notifier(C, NC_GEOM | ND_DATA, curves_id);
|
||||
|
|
|
@ -189,6 +189,10 @@ bool select_circle(const ViewContext &vc,
|
|||
/** \name Editing
|
||||
* \{ */
|
||||
|
||||
/**
|
||||
filedescriptor marked this conversation as resolved
Hans Goudey
commented
```
/**
* Remove (dissolve) selected curves or points based on the ".selection" attribute.
*/
```
|
||||
* Remove (dissolve) selected curves or points based on the ".selection" attribute.
|
||||
* \returns true if any point or curve was removed.
|
||||
*/
|
||||
bool remove_selection(bke::CurvesGeometry &curves, eAttrDomain selection_domain);
|
||||
|
||||
/** \} */
|
||||
|
|
Loading…
Reference in New Issue
Picky: might as well remove this newline here too, doesn't seem helpful anymore