diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-07-03 13:31:10 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-07-03 13:32:44 +0300 |
commit | 05f970847e12ce30e8c4c624677d94ae239ce2bc (patch) | |
tree | b1ee5475e08fcaa887fe320ce4da67eb5081a435 /source/blender/io/gpencil/intern/gpencil_io_base.hh | |
parent | 2d146b61d8583ec7169c5c04263d475a542b06ce (diff) |
GPencil: Fix unreported PDF export offset
When exporting a PDF, the image was displaced towards top right a few pixels.
Also removed is_orthographic variable because is not needed now.
Diffstat (limited to 'source/blender/io/gpencil/intern/gpencil_io_base.hh')
-rw-r--r-- | source/blender/io/gpencil/intern/gpencil_io_base.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/io/gpencil/intern/gpencil_io_base.hh b/source/blender/io/gpencil/intern/gpencil_io_base.hh index c3c6f1156bb..c8d85d08f7b 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_base.hh +++ b/source/blender/io/gpencil/intern/gpencil_io_base.hh @@ -88,14 +88,13 @@ class GpencilIO { /* Geometry functions. */ bool gpencil_3D_point_to_screen_space(const float3 co, float2 &r_co); - float2 gpencil_3D_point_to_render_space(const float3 co, const bool is_ortho); + float2 gpencil_3D_point_to_render_space(const float3 co); float2 gpencil_3D_point_to_2D(const float3 co); float stroke_point_radius_get(struct bGPDlayer *gpl, struct bGPDstroke *gps); void create_object_list(); bool is_camera_mode(); - bool is_orthographic(); float stroke_average_opacity_get(); @@ -109,7 +108,6 @@ class GpencilIO { private: float avg_opacity_; bool is_camera_; - bool is_ortho_; rctf select_boundbox_; /* Camera matrix. */ |