From 1fc75dbbceead7316095089ef15551a1d4fdd11f Mon Sep 17 00:00:00 2001 From: Antonioya Date: Wed, 19 Dec 2018 17:07:12 +0100 Subject: Fix T59595: Grease Pencil and CameraView The perspective effect deformed the stroke. Now when you are in camera view and the lock axis is not enabled, the stroke is reprojected flat over the view to remove any deformation. Also fixed reproject operator to use the origin set in topbar and not cursor 3D always. --- source/blender/editors/include/ED_gpencil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 4c453c67f6b..4b419263a37 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -239,6 +239,8 @@ void ED_gp_project_point_to_plane( void ED_gp_get_drawing_reference( const struct Scene *scene, const struct Object *ob, struct bGPDlayer *gpl, char align_flag, float vec[3]); +void ED_gpencil_project_stroke_to_view( + struct bContext *C, struct bGPDlayer *gpl, struct bGPDstroke *gps); /* set sculpt cursor */ void ED_gpencil_toggle_brush_cursor(struct bContext *C, bool enable, void *customdata); -- cgit v1.2.3