Blender Git Commit Log

Git Commits -> Revision 2d48f3e

Revision 2d48f3e by Philipp Oeser (master)
November 11, 2020, 09:12 (GMT)
Fix 'outliner_scroll_view()' not reaching wanted element

Scrolling to an item after opening relevant parents can go wrong if said
parent e.g. the last in the list [as in: then the Outliner does not
scroll down all the way]
It stems from the fact that 'region->v2d.tot.ymin' is not up-to-date in
outliner_scroll_view after outliner_show_active opens up parents, 'tot'
will only update on a redraw.

Now calculate the trees height on the fly using
'outliner_tree_dimensions()'.

ref D9521
ref T82553

Maniphest Tasks: T82553

Differential Revision: https://developer.blender.org/D9523

Commit Details:

Full Hash: 2d48f3e445ad4294cfe1a354629bf335117ba40d
Parent Commit: 12168cc
Lines Changed: +15, -10

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021