Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / undo / ed_undo.c
index a28e24bc0f7031dfbc5172d0c653fca3b31e9dd8..c4bfe83ed4c71c334303aa67841d8a3557cde4ec 100644 (file)
@@ -205,7 +205,7 @@ bool ED_undo_is_valid(const bContext *C, const char *undoname)
  */
 UndoStack *ED_undo_stack_get(void)
 {
-       wmWindowManager *wm = G.main->wm.first;
+       wmWindowManager *wm = G_MAIN->wm.first;
        return wm->undo_stack;
 }