Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / physics / physics_pointcache.c
index a66dbfc789d60807bc66153bca3198a3873394c8..343804726bf5c489c6758d146ed7134cc0abd1f1 100644 (file)
@@ -140,7 +140,7 @@ static void ptcache_job_endjob(void *customdata)
        G.is_rendering = false;
        BKE_spacedata_draw_locks(false);
 
-       WM_set_locked_interface(G.main->wm.first, false);
+       WM_set_locked_interface(G_MAIN->wm.first, false);
 
        WM_main_add_notifier(NC_SCENE | ND_FRAME, scene);
        WM_main_add_notifier(NC_OBJECT | ND_POINTCACHE, job->baker->pid.ob);