Fix T79222: Assert due to multiple building of same scene sequencer in depsgraph.

Just check and skip building if it has already been done before.

Thanks to @sergey for the help.
This commit is contained in:
Bastien Montagne 2020-08-03 15:09:21 +02:00
parent 3f94f47113
commit 2bb7378779
Notes: blender-bot 2023-02-14 06:45:14 +01:00
Referenced by issue #79544, No sound in video sequencer preview
Referenced by issue #79222, Crash on assert in DepsgraphNodeBuilder::add_operation_node
1 changed files with 3 additions and 0 deletions

View File

@ -1797,6 +1797,9 @@ void DepsgraphNodeBuilder::build_scene_sequencer(Scene *scene)
if (scene->ed == nullptr) {
return;
}
if (built_map_.checkIsBuiltAndTag(scene, BuilderMap::TAG_SCENE_SEQUENCER)) {
return;
}
build_scene_audio(scene);
Scene *scene_cow = get_cow_datablock(scene);
add_operation_node(&scene->id,