Cleanup: BKE_scene_free should not have to worry about cleaning its usages.
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. ;)
This commit is contained in:
parent
b00d840359
commit
f27ecd56ef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue