Draw grease pencil after masks

Looks like drawing grease pencil before masks was affecting projection matrix
somehow which made masks invisible

Anyway, drawing GP actually shall happen after masks to match how it works
in other areas.
This commit is contained in:
Sergey Sharybin
2012-06-11 11:54:16 +00:00
parent 6ab087ff99
commit 71a7fb6286

View File

@@ -1101,9 +1101,6 @@ static void clip_main_area_draw(const bContext *C, ARegion *ar)
clip_draw_main(sc, ar, scene);
/* Grease Pencil */
clip_draw_grease_pencil((bContext *)C, 1);
if (sc->mode == SC_MODE_MASKEDIT) {
int x, y;
int width, height;
@@ -1147,6 +1144,9 @@ static void clip_main_area_draw(const bContext *C, ARegion *ar)
glPopMatrix();
}
/* Grease Pencil */
clip_draw_grease_pencil((bContext *)C, 1);
/* reset view matrix */
UI_view2d_view_restore(C);