Blender Git Loki

Git Commits -> Revision 5e60414

Revision 5e60414 by Joshua Leung (master)
December 5, 2008, 02:03 (GMT)
View2D API: Cleaning up API + New Methods

* Cleaned up flags defined for View2D, and added some for defining the alignment of the view's data in the 'tot' rect (i.e. which quadrant(s) the view data is allowed to reside in).

* These flags are used in the new UI_view2d_totRect_set() function, which sets the new size of the 'tot' rect (i.e. the maximum viewable area). Currently, is only used for Outliner, but channel-lists also require this.

* Added API method to reset 'cur' (current viewing region) to 'default' viewing region - UI_view2d_curRect_reset(). Currently, 'keepzoom' is not respected. I'll check on whether this is needed when I recode UI_view2d_status_enforce(), which is badly in need of a cleanup.

Commit Details:

Full Hash: 5e6041496174904e1745b39517b63b0dff78326b
SVN Revision: 17719
Parent Commit: e4a8a39
Lines Changed: +178, -63

6 Modified Paths:

/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/editors/include/UI_view2d.h (+10, -5) (Diff)
/source/blender/editors/interface/view2d.c (+124, -22) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+4, -8) (Diff)
/source/blender/editors/space_time/space_time.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_view2d_types.h (+36, -26) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021