Blender Git Loki
Git Commits -> Revision 9ae0e58
Revision 9ae0e58 by Campbell Barton (master) April 21, 2014, 06:59 (GMT) |
View2d: API Cleanup for view<->region conversion View2D had some inconsistencies making it error prone in some cases. - Inconstant checking for NULL x/y args. Disallow NULL args for x/y destination pointers, instead add: - UI_view2d_region_to_view_x/y - UI_view2d_view_to_region_x/y - '_no_clip' suffix wasn't always used for non-clipping conversion, switch it around and use a '_clip' suffix for all funcs that clip. - UI_view2d_text_cache_add now clips before adding cache. - '_clip' funcs return a bool to quickly check if its in the view. - add conversion for rectangles, since this is a common task: - UI_view2d_view_to_region_rcti - UI_view2d_region_to_view_rctf |
Commit Details:
Full Hash: 9ae0e585b0aab466c978ec1a55c824d902faa3b4
Parent Commit: 6ee8670
Lines Changed: +280, -204
35 Modified Paths:
/source/blender/editors/animation/anim_markers.c (+7, -14) (Diff)
/source/blender/editors/animation/anim_ops.c (+3, -3) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+1, -1) (Diff)
/source/blender/editors/include/UI_view2d.h (+16, -5) (Diff)
/source/blender/editors/interface/interface_regions.c (+2, -3) (Diff)
/source/blender/editors/interface/view2d.c (+155, -61) (Diff)
/source/blender/editors/interface/view2d_ops.c (+3, -3) (Diff)
/source/blender/editors/mask/mask_draw.c (+1, -1) (Diff)
/source/blender/editors/screen/area.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image_2d.c (+2, -2) (Diff)
/source/blender/editors/space_action/action_select.c (+2, -2) (Diff)
/source/blender/editors/space_clip/clip_draw.c (+7, -7) (Diff)
/source/blender/editors/space_clip/clip_editor.c (+2, -2) (Diff)
/source/blender/editors/space_clip/clip_graph_ops.c (+5, -7) (Diff)
/source/blender/editors/space_clip/space_clip.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_ops.c (+11, -5) (Diff)
/source/blender/editors/space_graph/graph_select.c (+9, -9) (Diff)
/source/blender/editors/space_image/image_draw.c (+4, -4) (Diff)
/source/blender/editors/space_image/image_edit.c (+3, -3) (Diff)
/source/blender/editors/space_info/info_report.c (+0, -9) (Diff)
/source/blender/editors/space_nla/nla_select.c (+4, -4) (Diff)
/source/blender/editors/space_node/node_select.c (+3, -8) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_select.c (+3, -6) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/sequencer_edit.c (+2, -6) (Diff)
/source/blender/editors/space_sequencer/sequencer_select.c (+3, -11) (Diff)
/source/blender/editors/transform/transform.c (+7, -7) (Diff)
/source/blender/editors/transform/transform_snap.c (+2, -3) (Diff)
/source/blender/editors/uvedit/uvedit_ops.c (+4, -7) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+7, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -0) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+2, -2) (Diff)
/source/blender/editors/animation/anim_ops.c (+3, -3) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+1, -1) (Diff)
/source/blender/editors/include/UI_view2d.h (+16, -5) (Diff)
/source/blender/editors/interface/interface_regions.c (+2, -3) (Diff)
/source/blender/editors/interface/view2d.c (+155, -61) (Diff)
/source/blender/editors/interface/view2d_ops.c (+3, -3) (Diff)
/source/blender/editors/mask/mask_draw.c (+1, -1) (Diff)
/source/blender/editors/screen/area.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image_2d.c (+2, -2) (Diff)
/source/blender/editors/space_action/action_select.c (+2, -2) (Diff)
/source/blender/editors/space_clip/clip_draw.c (+7, -7) (Diff)
/source/blender/editors/space_clip/clip_editor.c (+2, -2) (Diff)
/source/blender/editors/space_clip/clip_graph_ops.c (+5, -7) (Diff)
/source/blender/editors/space_clip/space_clip.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_ops.c (+11, -5) (Diff)
/source/blender/editors/space_graph/graph_select.c (+9, -9) (Diff)
/source/blender/editors/space_image/image_draw.c (+4, -4) (Diff)
/source/blender/editors/space_image/image_edit.c (+3, -3) (Diff)
/source/blender/editors/space_info/info_report.c (+0, -9) (Diff)
/source/blender/editors/space_nla/nla_select.c (+4, -4) (Diff)
/source/blender/editors/space_node/node_select.c (+3, -8) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_select.c (+3, -6) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/sequencer_edit.c (+2, -6) (Diff)
/source/blender/editors/space_sequencer/sequencer_select.c (+3, -11) (Diff)
/source/blender/editors/transform/transform.c (+7, -7) (Diff)
/source/blender/editors/transform/transform_snap.c (+2, -3) (Diff)
/source/blender/editors/uvedit/uvedit_ops.c (+4, -7) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+7, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -0) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+2, -2) (Diff)