Fix unnecessary 3D viewport redraws in various cases, in particular when editing
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 24 Jun 2013 22:41:33 +0000 (22:41 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 24 Jun 2013 22:41:33 +0000 (22:41 +0000)
commit02fbfa5c70732e691606546ecce60fdfe3f80d9f
tree9c5e5be02ae4b87b52642d77f264ce1f76d48e41
parent8390aa5181d3dd9c8458fa68c2add910c1cd12e9
Fix unnecessary 3D viewport redraws in various cases, in particular when editing
node materials.

Area and region listener callbacks now get the screen and area pointers passed, so
they can do more fine grained checks to see if redraw is really needed, for example
depending on the 3D view drawtype.
26 files changed:
source/blender/blenkernel/BKE_screen.h
source/blender/editors/include/ED_screen.h
source/blender/editors/interface/interface_templates.c
source/blender/editors/screen/area.c
source/blender/editors/space_action/space_action.c
source/blender/editors/space_buttons/space_buttons.c
source/blender/editors/space_clip/space_clip.c
source/blender/editors/space_console/space_console.c
source/blender/editors/space_file/space_file.c
source/blender/editors/space_graph/space_graph.c
source/blender/editors/space_image/space_image.c
source/blender/editors/space_info/space_info.c
source/blender/editors/space_logic/space_logic.c
source/blender/editors/space_nla/space_nla.c
source/blender/editors/space_node/node_draw.c
source/blender/editors/space_node/space_node.c
source/blender/editors/space_outliner/space_outliner.c
source/blender/editors/space_script/space_script.c
source/blender/editors/space_sequencer/space_sequencer.c
source/blender/editors/space_text/space_text.c
source/blender/editors/space_time/space_time.c
source/blender/editors/space_userpref/space_userpref.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/makesrna/intern/rna_material.c
source/blender/windowmanager/WM_types.h
source/blender/windowmanager/intern/wm_event_system.c