diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-04-09 19:13:25 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-04-09 19:16:21 +0300 |
commit | 69a4d113e8dd3f2f267536b2b93af2540f3a0978 (patch) | |
tree | 0d647146c7b634814861166444053b134b87617d /source | |
parent | 3f2d5dfc0d2dd23c39ab33f340f12f6c9f47d035 (diff) |
Fix T97133: Crash when creating a scene copy
Crash happened in sequencer editor, because pointer to displayed
channels was not set in `scene_copy_data`.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/scene.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.cc b/source/blender/blenkernel/intern/scene.cc index 4e6191cca6f..0430269b75a 100644 --- a/source/blender/blenkernel/intern/scene.cc +++ b/source/blender/blenkernel/intern/scene.cc @@ -322,6 +322,7 @@ static void scene_copy_data(Main *bmain, ID *id_dst, const ID *id_src, const int SEQ_DUPE_ALL, flag_subdata); BLI_duplicatelist(&scene_dst->ed->channels, &scene_src->ed->channels); + scene_dst->ed->displayed_channels = &scene_dst->ed->channels; } if ((flag & LIB_ID_COPY_NO_PREVIEW) == 0) { |