diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-10-02 14:38:25 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-10-02 14:40:42 +0300 |
commit | 9d30adb7ebdca322e8fb15c91ef50b90dead085b (patch) | |
tree | e0e1fbdbf335932462cbc16bd9223e26f0ceaee7 /source/blender/editors/gpencil/gpencil_fill.c | |
parent | 8f1d3e14d9b472c00c1e537cc1e6e20b279d08e1 (diff) |
Cleanup: Rename function `gpencil_point_to_parent_space`
gpencil_point_to_parent_space -> gpencil_point_to_world_space
The old name was not clear because it looked it was moving into
the object space, but really is doing the opposite.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_fill.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c index e288c6c4aca..03d4df61e14 100644 --- a/source/blender/editors/gpencil/gpencil_fill.c +++ b/source/blender/editors/gpencil/gpencil_fill.c @@ -429,7 +429,7 @@ static void gpencil_load_array_strokes(tGPDfill *tgpf) for (int i = 0; i < gps->totpoints; i++) { bGPDspoint *pt = &gps->points[i]; bGPDspoint pt2; - gpencil_point_to_parent_space(pt, diff_mat, &pt2); + gpencil_point_to_world_space(pt, diff_mat, &pt2); gpencil_point_to_xy_fl( &tgpf->gsc, gps, &pt2, &stroke->points2d[i][0], &stroke->points2d[i][1]); } @@ -597,11 +597,11 @@ static void gpencil_cut_extensions(tGPDfill *tgpf) /* First stroke. */ bGPDspoint *pt = &gps_a->points[0]; - gpencil_point_to_parent_space(pt, diff_mat, &pt2); + gpencil_point_to_world_space(pt, diff_mat, &pt2); gpencil_point_to_xy_fl(&tgpf->gsc, gps_a, &pt2, &a1xy[0], &a1xy[1]); pt = &gps_a->points[1]; - gpencil_point_to_parent_space(pt, diff_mat, &pt2); + gpencil_point_to_world_space(pt, diff_mat, &pt2); gpencil_point_to_xy_fl(&tgpf->gsc, gps_a, &pt2, &a2xy[0], &a2xy[1]); bGPDspoint *extreme_a = &gps_a->points[1]; @@ -624,11 +624,11 @@ static void gpencil_cut_extensions(tGPDfill *tgpf) } pt = &gps_b->points[0]; - gpencil_point_to_parent_space(pt, diff_mat, &pt2); + gpencil_point_to_world_space(pt, diff_mat, &pt2); gpencil_point_to_xy_fl(&tgpf->gsc, gps_b, &pt2, &b1xy[0], &b1xy[1]); pt = &gps_b->points[1]; - gpencil_point_to_parent_space(pt, diff_mat, &pt2); + gpencil_point_to_world_space(pt, diff_mat, &pt2); gpencil_point_to_xy_fl(&tgpf->gsc, gps_b, &pt2, &b2xy[0], &b2xy[1]); bGPDspoint *extreme_b = &gps_b->points[1]; |