diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-12-18 13:19:57 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-12-19 13:51:49 +0300 |
commit | bc8f2e9ee42be09ff196c2e427f52042cff97197 (patch) | |
tree | 987c224278bcac53f396859f762156fcb3bf7a9b /source/blender | |
parent | 1a21c0c239fcaf8bf9570aa0bc22aa197e3edf94 (diff) |
Fix T59500: Weight Smoothing Not Working
Reviewers: brecht, dfelinto
Maniphest Tasks: T59500
Differential Revision: https://developer.blender.org/D4094
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 599ab0d7301..036689509e9 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -3124,9 +3124,11 @@ static int vertex_group_smooth_exec(bContext *C, wmOperator *op) eVGroupSelect subset_type = RNA_enum_get(op->ptr, "group_select_mode"); const float fac_expand = RNA_float_get(op->ptr, "expand"); ViewLayer *view_layer = CTX_data_view_layer(C); + Object *ob_ctx = ED_object_context(C); uint objects_len = 0; - Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data(view_layer, CTX_wm_view3d(C), &objects_len); + Object **objects = BKE_view_layer_array_from_objects_in_mode_unique_data(view_layer, CTX_wm_view3d(C), &objects_len, + ob_ctx->mode); for (uint ob_index = 0; ob_index < objects_len; ob_index++) { Object *ob = objects[ob_index]; |