Fix T59500: Weight Smoothing Not Working

Reviewers: brecht, dfelinto

Maniphest Tasks: T59500

Differential Revision: https://developer.blender.org/D4094
This commit is contained in:
Philipp Oeser 2018-12-18 11:19:57 +01:00
parent 1a21c0c239
commit bc8f2e9ee4
Notes: blender-bot 2023-02-14 04:26:29 +01:00
Referenced by issue #59500, Weight Smoothing Not Working in 2.80
1 changed files with 3 additions and 1 deletions

View File

@ -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];