Blender Git Loki

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

5 Modified Paths:

/source/blender/editors/space_outliner/outliner_draw.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+3, -2) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+3, -1) (Diff)
/source/blender/editors/space_outliner/outliner_select.c (+4, -4) (Diff)
/source/blender/editors/space_outliner/outliner_utils.c (+4, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021