Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mask/mask_select.c
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "mask_intern.h" /* own include */ | #include "mask_intern.h" /* own include */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Public Mask Selection API | /** \name Public Mask Selection API | ||||
| * \{ */ | * \{ */ | ||||
| /* 'check' select */ | |||||
| bool ED_mask_spline_select_check(const MaskSpline *spline) | bool ED_mask_spline_select_check(const MaskSpline *spline) | ||||
| { | { | ||||
| for (int i = 0; i < spline->tot_point; i++) { | for (int i = 0; i < spline->tot_point; i++) { | ||||
| MaskSplinePoint *point = &spline->points[i]; | MaskSplinePoint *point = &spline->points[i]; | ||||
| if (MASKPOINT_ISSEL_ANY(point)) { | if (MASKPOINT_ISSEL_ANY(point)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 918 Lines • Show Last 20 Lines | |||||