Depsgraph: remove EvaluationContext, pass Depsgraph instead.
[blender.git] / source / blender / blenkernel / intern / library.c
index 6ec2d223e8496611b70d7832bd83e4483ba57b22..c0eb9e770875b5a685835402e81ccae051f75b1a 100644 (file)
@@ -1466,7 +1466,6 @@ void BKE_library_free(Library *lib)
 Main *BKE_main_new(void)
 {
        Main *bmain = MEM_callocN(sizeof(Main), "new main");
-       bmain->eval_ctx = DEG_evaluation_context_new(DAG_EVAL_VIEWPORT);
        bmain->lock = MEM_mallocN(sizeof(SpinLock), "main lock");
        BLI_spin_init((SpinLock *)bmain->lock);
        return bmain;
@@ -1541,7 +1540,6 @@ void BKE_main_free(Main *mainvar)
 
        BLI_spin_end((SpinLock *)mainvar->lock);
        MEM_freeN(mainvar->lock);
-       DEG_evaluation_context_free(mainvar->eval_ctx);
        MEM_freeN(mainvar);
 }