diff options
author | Falk David <falkdavid@gmx.de> | 2021-04-14 11:03:14 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2021-04-14 11:14:04 +0300 |
commit | 9ca55b10b8cc78271a6266c4af473aa5fde493c6 (patch) | |
tree | 8a80e54133b22d5df6a3760a69e8a5812f0833b1 /source/blender/io | |
parent | a425b2b25c0f7ba44e9732633e648338270c4483 (diff) |
Fix T87479: GPencil SVG export outside of camera
When trying to export a GPencil object to SVG from outside the camera
view, the expoted file would contain invalid data. This was because the
calculation of the bounding box did not have any objects to
iterate over.
The fix makes sure we create the object list before trying to calculate
the bounding box.
Reviewed By: antoniov
Maniphest Tasks: T87479
Differential Revision: https://developer.blender.org/D10975
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/gpencil/intern/gpencil_io_base.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/io/gpencil/intern/gpencil_io_base.cc b/source/blender/io/gpencil/intern/gpencil_io_base.cc index 8da1ec27b9c..c60055eccaf 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_base.cc +++ b/source/blender/io/gpencil/intern/gpencil_io_base.cc @@ -120,6 +120,8 @@ GpencilIO::GpencilIO(const GpencilIOParams *iparams) offset_.x = 0.0f; offset_.y = 0.0f; + create_object_list(); + selected_objects_boundbox_calc(); rctf boundbox; selected_objects_boundbox_get(&boundbox); |