From 3aeb63cad2340d92c17df375bbe55629299661c0 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 4 Jan 2009 17:45:54 +0000 Subject: 2.5 WM: added area-listener, which can be used to tag refreshes for either the drawing call, or use the new ED_area_tag_refresh() function which will automatically call, after all notifiers were handled, an the spacetype->refresh() you provided. Added for Joshua, after reviewing Action/Dopesheet requirements. Joshua: I've made two dummy functions in space_action.c: - action_listener() - action_refresh() Wich now does a printf on activating a new object. --- source/blender/makesdna/DNA_screen_types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/makesdna/DNA_screen_types.h') diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index 9de835da9f1..353bacf7a43 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -106,7 +106,8 @@ typedef struct ScrArea { short winx, winy; /* size */ short headertype; /* OLD! 0=no header, 1= down, 2= up */ - int pad; + short pad; + short do_refresh; /* private, for spacetype refresh callback */ short cursor, flag; ScriptLink scriptlink; @@ -134,7 +135,7 @@ typedef struct ARegion { float fsize; /* current split size in float */ - short do_draw; /* cached notifier events */ + short do_draw; /* private, cached notifier events */ short pad; int pad1; -- cgit v1.2.3