From 084bf7daee3ebcd57696f5b2a0c83db1b1f3d472 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 7 Oct 2018 18:25:51 +0300 Subject: Weight Paint: Implement a new Lock-Relative mode. This check box alters how weights are displayed and painted, similar to Multi Paint, but in a different way. Specifically, weights are presented as if all locked vertex groups were deleted, and the remaining deform groups normalized. The new feature is intended for use when balancing weights within a group of bones while all others are locked. Enabling the option presents weight as if the locked bones didn't exist, and their weight was proportionally redistributed to the editable bones. Conversely, the Multi-Paint feature allows balancing a group of bones as a whole against all unselected bones, while ignoring weight distribution within the selected group. This mode also allows temporarily viewing non-normalized weights as if they were normalized, without actually changing the values. Differential Revision: https://developer.blender.org/D3837 --- source/blender/blenkernel/BKE_object_deform.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/blender/blenkernel/BKE_object_deform.h') diff --git a/source/blender/blenkernel/BKE_object_deform.h b/source/blender/blenkernel/BKE_object_deform.h index f5283ef8405..410cb862aa7 100644 --- a/source/blender/blenkernel/BKE_object_deform.h +++ b/source/blender/blenkernel/BKE_object_deform.h @@ -76,6 +76,16 @@ bool *BKE_object_defgroup_selected_get(struct Object *ob, int defbase_tot, int *r_dg_flags_sel_tot); +bool BKE_object_defgroup_check_lock_relative(const bool *lock_flags, + const bool *validmap, + int index); +bool BKE_object_defgroup_check_lock_relative_multi(int defbase_tot, + const bool *lock_flags, + const bool *selected, + int sel_tot); +void BKE_object_defgroup_split_locked_validmap( + int defbase_tot, const bool *locked, const bool *deform, bool *r_locked, bool *r_unlocked); + void BKE_object_defgroup_mirror_selection(struct Object *ob, int defbase_tot, const bool *selection, -- cgit v1.2.3