Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-07-15 17:20:11 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-07-15 17:20:11 +0300
commit70d193203bbac53a6c2992fbb5f87f4aa8465bb4 (patch)
treeef4f6e350177ed2783e04c040d3b03d57fe60782 /source/blender
parent914427afd5129954781cf4459067efeb6afa7d14 (diff)
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
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_view3d/view3d_select.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c
index fd7cc3d2ba2..0df5652c539 100644
--- a/source/blender/editors/space_view3d/view3d_select.c
+++ b/source/blender/editors/space_view3d/view3d_select.c
@@ -2319,6 +2319,7 @@ static bool ed_object_select_pick(bContext *C,
retval = true;
WM_event_add_notifier(C, NC_OBJECT | ND_BONE_SELECT, basact->object);
WM_event_add_notifier(C, NC_OBJECT | ND_BONE_ACTIVE, basact->object);
+ DEG_id_tag_update(&scene->id, ID_RECALC_BASE_FLAGS);
/* in weightpaint, we use selected bone to select vertexgroup,
* so no switch to new active object */