Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mask/mask_add.c
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | bool ED_mask_find_nearest_diff_point(const bContext *C, | ||||
| MaskLayer *point_masklay; | MaskLayer *point_masklay; | ||||
| MaskSpline *point_spline; | MaskSpline *point_spline; | ||||
| MaskSplinePoint *point = NULL; | MaskSplinePoint *point = NULL; | ||||
| float dist_best_sq = FLT_MAX, co[2]; | float dist_best_sq = FLT_MAX, co[2]; | ||||
| int width, height; | int width, height; | ||||
| float u = 0.0f; | float u = 0.0f; | ||||
| float scalex, scaley; | float scalex, scaley; | ||||
| Depsgraph *depsgraph = CTX_data_evaluated_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| Mask *mask_eval = (Mask *)DEG_get_evaluated_id(depsgraph, &mask_orig->id); | Mask *mask_eval = (Mask *)DEG_get_evaluated_id(depsgraph, &mask_orig->id); | ||||
| ED_mask_get_size(sa, &width, &height); | ED_mask_get_size(sa, &width, &height); | ||||
| ED_mask_pixelspace_factor(sa, ar, &scalex, &scaley); | ED_mask_pixelspace_factor(sa, ar, &scalex, &scaley); | ||||
| co[0] = normal_co[0] * scalex; | co[0] = normal_co[0] * scalex; | ||||
| co[1] = normal_co[1] * scaley; | co[1] = normal_co[1] * scaley; | ||||
| ▲ Show 20 Lines • Show All 865 Lines • Show Last 20 Lines | |||||