From cac0e48dfb0f568ef83ff014647f0193a3a03a66 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 20 Oct 2009 21:05:22 +0000 Subject: Region post redraw is now split up in a view space and pixel space part. This fixes a bug where transform help line drawing would not work with view clipping and mess up the z-buffer. This avoids the transform code having to figure out what kind of opengl state is enabled and disable it temporarily. --- source/blender/editors/include/ED_space_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/include/ED_space_api.h') diff --git a/source/blender/editors/include/ED_space_api.h b/source/blender/editors/include/ED_space_api.h index 04b6be3bcaa..14819206dfa 100644 --- a/source/blender/editors/include/ED_space_api.h +++ b/source/blender/editors/include/ED_space_api.h @@ -60,8 +60,8 @@ void ED_spacetype_userpref(void); void ED_file_init(void); void ED_file_exit(void); -#define REGION_DRAW_PRE 1 -#define REGION_DRAW_POST 0 +#define REGION_DRAW_POST_VIEW 0 +#define REGION_DRAW_POST_PIXEL 1 void *ED_region_draw_cb_activate(struct ARegionType *, void (*draw)(const struct bContext *, struct ARegion *, void *), -- cgit v1.2.3