Cleanup: BKE_scene_free should not have to worry about cleaning its usages.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 12 Jun 2018 15:46:16 +0000 (17:46 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 12 Jun 2018 15:46:16 +0000 (17:46 +0200)
This is supposed to be handled by calling code! Henceforce, no need to
call BKE_sequencer_clear_scene_in_allseqs() here, and... no need for
that ugly G.main case. ;)

source/blender/blenkernel/intern/scene.c

index 24daae2cc717b1e11f9fd6dadfc81bb87bf0f9f3..69199d62556c4be4d09879b4fdf726d319df07e3 100644 (file)
@@ -458,9 +458,6 @@ void BKE_scene_free(Scene *sce)
 
        BKE_animdata_free((ID *)sce, false);
 
-       /* check all sequences */
-       BKE_sequencer_clear_scene_in_allseqs(G.main, sce);
-
        sce->basact = NULL;
        BLI_freelistN(&sce->base);
        BKE_sequencer_editing_free(sce, false);