Blender Git Loki
Git Commits -> Revision 408ba42
Revision 408ba42 by Brecht Van Lommel (master) July 29, 2009, 22:57 (GMT) |
2.5: Buttons View * When resizing the window, the top position is now preserved, instead of the center position. * Fix zoom level not being preserved in various cases, when changing both with and height. This replaces some earlier code which did this at screen level but wasn't very reliable. * Different tabs now each preserve their own scroll. * When switching between tabs, it now scrolls to show as many buttons as possible, instead of possibly showing empty space. There is a trade-off here between doing that keeping the buttons in the same place, no ideal solution exists I think. * Change zooming in/out to be symmetric, for example doing numpad + then - did not give the original zoom level back. * Added some calls to avoid hanging tooltips when manipulating the view. Internals: * Added V2D_KEEPOFS_X and V2D_KEEPOFS_Y to keep the top/bottom rather than the center. * Renamed V2D_KEEPZOOM to V2D_LIMITZOOM (seems more appropriate), and make V2D_KEEPZOOM preserve the zoom level. |
Commit Details:
Full Hash: 408ba429e6aa392f769aac4a442a7a06c1740326
SVN Revision: 22031
Parent Commit: 2df1eeb
Lines Changed: +228, -105
22 Modified Paths:
/source/blender/blenkernel/intern/screen.c (+9, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+7, -4) (Diff)
/source/blender/editors/include/ED_screen.h (+1, -1) (Diff)
/source/blender/editors/include/UI_view2d.h (+5, -0) (Diff)
/source/blender/editors/interface/view2d.c (+110, -21) (Diff)
/source/blender/editors/interface/view2d_ops.c (+40, -12) (Diff)
/source/blender/editors/screen/area.c (+18, -9) (Diff)
/source/blender/editors/screen/screen_edit.c (+0, -28) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+11, -11) (Diff)
/source/blender/editors/space_console/space_console.c (+2, -2) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -2) (Diff)
/source/blender/editors/space_graph/space_graph.c (+1, -1) (Diff)
/source/blender/editors/space_image/space_image.c (+1, -1) (Diff)
/source/blender/editors/space_info/space_info.c (+1, -1) (Diff)
/source/blender/editors/space_logic/space_logic.c (+2, -2) (Diff)
/source/blender/editors/space_nla/space_nla.c (+1, -1) (Diff)
/source/blender/editors/space_node/space_node.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+1, -1) (Diff)
/source/blender/editors/space_text/space_text.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_view2d_types.h (+11, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+7, -4) (Diff)
/source/blender/editors/include/ED_screen.h (+1, -1) (Diff)
/source/blender/editors/include/UI_view2d.h (+5, -0) (Diff)
/source/blender/editors/interface/view2d.c (+110, -21) (Diff)
/source/blender/editors/interface/view2d_ops.c (+40, -12) (Diff)
/source/blender/editors/screen/area.c (+18, -9) (Diff)
/source/blender/editors/screen/screen_edit.c (+0, -28) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+11, -11) (Diff)
/source/blender/editors/space_console/space_console.c (+2, -2) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -2) (Diff)
/source/blender/editors/space_graph/space_graph.c (+1, -1) (Diff)
/source/blender/editors/space_image/space_image.c (+1, -1) (Diff)
/source/blender/editors/space_info/space_info.c (+1, -1) (Diff)
/source/blender/editors/space_logic/space_logic.c (+2, -2) (Diff)
/source/blender/editors/space_nla/space_nla.c (+1, -1) (Diff)
/source/blender/editors/space_node/space_node.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+1, -1) (Diff)
/source/blender/editors/space_text/space_text.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_view2d_types.h (+11, -1) (Diff)