Blender Git Loki
Git Commits -> Revision 9fa6b03
Revision 9fa6b03 by Joshua Leung (master) December 11, 2008, 03:50 (GMT) |
View2D: Various Fixes + Header Support Added support for panning headers using View2D of the header regions (only done for TimeLine, as only that one has buttons on it). Currently, this uses some do_versions magic to initialise the View2D rects required, however, I'm not sure if all the information was safely ported over yet (notably height and position of rects due to alignment issues). In the process, I noticed a few bugs with the current View2D code: * UI_view2d_curRect_validate() is now called after UI_view2d_size_update(), as the size of the 'mask' rect is closely related to the size of the 'cur' rect (especially when zooming is locked). * Fixed a bug in UI_view2d_curRect_validate() which meant that if the 'cur' rect was slightly larger than the 'tot' rect, and keeptot was set, the view would flicker between the two closely related positions. |
Commit Details:
Full Hash: 9fa6b03ea715df85f996c04bfe7ef30e09cfa513
SVN Revision: 17785
Parent Commit: f00a752
Lines Changed: +92, -27