diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-10-02 14:34:39 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-10-02 14:40:42 +0300 |
commit | 8f1d3e14d9b472c00c1e537cc1e6e20b279d08e1 (patch) | |
tree | 5774c790515f530b8e4d6f5bd3c007c238d5f758 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | e0a261c653cb158d940569c830f81a0c064da40e (diff) |
Cleanup: Rename functions
gpencil_apply_parent->gpencil_world_to_object_space
gpencil_apply_parent_point->gpencil_world_to_object_space_point
The old name was not descriptive enough.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index e1eeda5437a..9a067dc018f 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -1137,7 +1137,7 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p) pt = gps->points; for (int i = 0; i < gps->totpoints; i++, pt++) { /* if parented change position relative to parent object */ - gpencil_apply_parent_point(depsgraph, obact, gpl, pt); + gpencil_world_to_object_space_point(depsgraph, obact, gpl, pt); } /* If camera view or view projection, reproject flat to view to avoid perspective effect. */ @@ -1302,7 +1302,7 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p) /* reproject to plane (only in 3d space) */ gpencil_reproject_toplane(p, gps); /* change position relative to parent object */ - gpencil_apply_parent(depsgraph, obact, gpl, gps); + gpencil_world_to_object_space(depsgraph, obact, gpl, gps); /* If camera view or view projection, reproject flat to view to avoid perspective effect. */ if ((!is_depth) && (((align_flag & GP_PROJECT_VIEWSPACE) && is_lock_axis_view) || is_camera)) { ED_gpencil_project_stroke_to_view(p->C, p->gpl, gps); |