Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2022-04-09 19:13:25 +0300
committerRichard Antalik <richardantalik@gmail.com>2022-04-09 19:16:21 +0300
commit69a4d113e8dd3f2f267536b2b93af2540f3a0978 (patch)
tree0d647146c7b634814861166444053b134b87617d /source
parent3f2d5dfc0d2dd23c39ab33f340f12f6c9f47d035 (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.cc1
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) {