Blender Git Commit Log
Git Commits -> Revision 0feedfe
Revision 0feedfe by Joshua Leung (master) January 4, 2009, 04:21 (GMT) |
2.5 - Outliner/RNA Viewer View2d Fixes (Part 1) Cleaned up the View2D setup stuff here, by removing all the hacky manual setting of tot and cur rects. Now the Outliner and RNA are scrollable again. However, in the process, I uncovered a few rather nasty bugs that must've been around for ages. 1) The width-calculation code depends on te->xend for calculating the max-extents, but that is not set until drawing of channels commences. This is far too late, as it is needed for the setting of the 'tot' rect's extents, so that we can have horizontal scrolling, and an accurate horizontal scroller! I noticed that RNA version of this currently hacks around this by using constant width of 100, but that's not a great final solution. 2) There's some minor pixel offset twitching going on with the restriction columns when the view is resized. Also, for RNA, the buttons sometimes cause a few drawing artifacts. Will check on this in part 2. |
Commit Details:
Full Hash: 0feedfe591f46667efdd0a70e3e29cd2e10927dd
SVN Revision: 18308
Parent Commit: 125057c
Lines Changed: +57, -46