Fix T66668: frame selected bone not working in weight paint mode
authorPhilipp Oeser <info@graphics-engineer.com>
Mon, 15 Jul 2019 14:20:11 +0000 (16:20 +0200)
committerPhilipp Oeser <info@graphics-engineer.com>
Mon, 15 Jul 2019 14:20:11 +0000 (16:20 +0200)
commit70d193203bbac53a6c2992fbb5f87f4aa8465bb4
treeef4f6e350177ed2783e04c040d3b03d57fe60782
parent914427afd5129954781cf4459067efeb6afa7d14
Fix T66668: frame selected bone not working in weight paint mode

'viewselected_exec()' [which uses evaluated view layer] would query
BASE_SELECTED flag, but it was not set on base_eval, but on its
base_orig.

reason for this is 'ed_object_select_pick()' would modify base flags
[through 'ED_object_base_select()'], but not tag scene
ID_RECALC_BASE_FLAGS.

thx @sergey for hinting.

Reviewers: sergey, brecht

Maniphest Tasks: T66668

Differential Revision: https://developer.blender.org/D5235
source/blender/editors/space_view3d/view3d_select.c