Blender Git Loki

Git Commits -> Revision fa28e50

Revision fa28e50 by Ton Roosendaal (master)
December 26, 2012, 13:05 (GMT)
Region scrollbar fix!

Now scrollbars correctly hide and show, making space for the actual contents
in a region. It solves several old hacks, and puts view2d code a bit more
back in control as well.

Implementation notes:

- The view2d mask feature is working again
- The #define V2D_SCROLL_HORIZONTAL_HIDE means: "turn on hiding".
- Code for UI_view2d_region_reinit() is enforcing better standard view settings

But... two hack/patches needed to be added:

- Region panel drawing: if after generating the button panels it appears
a scroller hides or reveils, it calls all the generating code again.
(a simple scale doesn't work due to rounding differences in layout code)

- View2d code that maps 'tot' and 'cur' rects: if this code detects that
the mask changes, it calcs the map code again.

Also a bugfix (issue in 2.65)

- The left/bottom area split widget was drawing 1 pixel too large sometimes,
leaving bad trails on moving area dividers.



Commit Details:

Full Hash: fa28e50ac2a79e4aa481f659b1457e99f2f17557
SVN Revision: 53326
Parent Commit: 4e60464
Lines Changed: +463, -435

19 Modified Paths:

/source/blender/blenloader/intern/versioning_250.c (+2, -2) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -0) (Diff)
/source/blender/editors/include/UI_view2d.h (+0, -1) (Diff)
/source/blender/editors/interface/interface.c (+2, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+2, -19) (Diff)
/source/blender/editors/interface/interface_panel.c (+27, -3) (Diff)
/source/blender/editors/interface/view2d.c (+237, -234) (Diff)
/source/blender/editors/interface/view2d_ops.c (+2, -2) (Diff)
/source/blender/editors/screen/area.c (+122, -100) (Diff)
/source/blender/editors/space_action/action_draw.c (+2, -14) (Diff)
/source/blender/editors/space_action/space_action.c (+4, -5) (Diff)
/source/blender/editors/space_file/file_draw.c (+1, -2) (Diff)
/source/blender/editors/space_graph/space_graph.c (+6, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+35, -39) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+2, -2) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+11, -6) (Diff)
/source/blender/editors/space_userpref/space_userpref.c (+3, -3) (Diff)
/source/blender/makesdna/DNA_view2d_types.h (+3, -3) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021