Blender Git Commit Log

Git Commits -> Revision 7e245e4

Revision 7e245e4 by Philipp Oeser (master)
September 11, 2019, 16:01 (GMT)
Fix T59143: Frame Selected Doesn't work in hair particle editmode

This is caused by rBeb521b22b2b1.

Looks like `PE_minmax` doesnt play nice with the evaluated view_layer.
If we look inside `PE_get_current`, then `BKE_ptcache_ids_from_object`
will actually return a list of `PTCacheID` for the evaluated object.
However, looking further, then `PTCacheEdit` / `psys->pointcache->edit`
is always NULL for the evaluated object.

Without a valid `PTCacheEdit`, `PE_minmax` will basically do nothing.
So now we are passing the non-evaluated view layer in the case of
particles.

Regarding to @sergey, in a longer term we should probably make it so
evaluated pointcache have pointer to edit.

Reviewers: sergey

Maniphest Tasks: T59143

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

Commit Details:

Full Hash: 7e245e482ca6f1c1d9a84c317feb151758316d34
Parent Commit: 30aa67d
Lines Changed: +1, -1

1 Modified Path:

/source/blender/editors/space_view3d/view3d_edit.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021