Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curves/intern/curves_selection.cc
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | static IndexMask retrieve_selected_curves(const bke::CurvesGeometry &curves, | ||||
| return index_mask_ops::find_indices_from_virtual_array(curves_range, selection, 2048, r_indices); | return index_mask_ops::find_indices_from_virtual_array(curves_range, selection, 2048, r_indices); | ||||
| } | } | ||||
| IndexMask retrieve_selected_curves(const Curves &curves_id, Vector<int64_t> &r_indices) | IndexMask retrieve_selected_curves(const Curves &curves_id, Vector<int64_t> &r_indices) | ||||
| { | { | ||||
| const bke::CurvesGeometry &curves = bke::CurvesGeometry::wrap(curves_id.geometry); | const bke::CurvesGeometry &curves = bke::CurvesGeometry::wrap(curves_id.geometry); | ||||
| return retrieve_selected_curves(curves, r_indices); | return retrieve_selected_curves(curves, r_indices); | ||||
| } | } | ||||
| static IndexMask retrieve_selected_points(const bke::CurvesGeometry &curves, | IndexMask retrieve_selected_points(const bke::CurvesGeometry &curves, Vector<int64_t> &r_indices) | ||||
HooglyBoogly: I strongly suggest setting up format on save for your editor, it'll save a lot of time! | |||||
| Vector<int64_t> &r_indices) | |||||
| { | { | ||||
| return index_mask_ops::find_indices_from_virtual_array( | return index_mask_ops::find_indices_from_virtual_array( | ||||
| curves.points_range(), | curves.points_range(), | ||||
| curves.attributes().lookup_or_default<bool>(".selection", ATTR_DOMAIN_POINT, true), | curves.attributes().lookup_or_default<bool>(".selection", ATTR_DOMAIN_POINT, true), | ||||
| 2048, | 2048, | ||||
| r_indices); | r_indices); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines | |||||
I strongly suggest setting up format on save for your editor, it'll save a lot of time!