diff options
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 4 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 8 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_primitive.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c index 622556943c9..d3616909415 100644 --- a/source/blender/editors/gpencil/gpencil_fill.c +++ b/source/blender/editors/gpencil/gpencil_fill.c @@ -1283,8 +1283,8 @@ static void gpencil_stroke_from_buffer(tGPDfill *tgpf) gpencil_apply_parent_point(tgpf->depsgraph, tgpf->ob, tgpf->gpl, pt); } - /* if camera view, reproject flat to view to avoid perspective effect */ - if (is_camera) { + /* If camera view or view projection, reproject flat to view to avoid perspective effect. */ + if ((*p->align_flag & GP_PROJECT_VIEWSPACE) || is_camera) { ED_gpencil_project_stroke_to_view(tgpf->C, tgpf->gpl, gps); } diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 14313a50118..fcdada1e673 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -1084,8 +1084,8 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p) gpencil_apply_parent_point(depsgraph, obact, gpl, pt); } - /* if camera view, reproject flat to view to avoid perspective effect */ - if (is_camera) { + /* If camera view or view projection, reproject flat to view to avoid perspective effect. */ + if ((*p->align_flag & GP_PROJECT_VIEWSPACE) || is_camera) { ED_gpencil_project_stroke_to_view(p->C, p->gpl, gps); } } @@ -1233,8 +1233,8 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p) gpencil_reproject_toplane(p, gps); /* change position relative to parent object */ gpencil_apply_parent(depsgraph, obact, gpl, gps); - /* if camera view, reproject flat to view to avoid perspective effect */ - if (is_camera) { + /* If camera view or view projection, reproject flat to view to avoid perspective effect. */ + if ((*p->align_flag & GP_PROJECT_VIEWSPACE) || is_camera) { ED_gpencil_project_stroke_to_view(p->C, p->gpl, gps); } diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c index 33497429331..cf2f8d51d74 100644 --- a/source/blender/editors/gpencil/gpencil_primitive.c +++ b/source/blender/editors/gpencil/gpencil_primitive.c @@ -1077,8 +1077,8 @@ static void gpencil_primitive_update_strokes(bContext *C, tGPDprimitive *tgpi) gpencil_apply_parent_point(tgpi->depsgraph, tgpi->ob, tgpi->gpl, pt); } - /* if camera view, reproject flat to view to avoid perspective effect */ - if (is_camera) { + /* If camera view or view projection, reproject flat to view to avoid perspective effect. */ + if ((*p->align_flag & GP_PROJECT_VIEWSPACE) || is_camera) { ED_gpencil_project_stroke_to_view(C, tgpi->gpl, gps); } |