Fix #107918: Weight Gradient tool paints over locked vertex groups #108974

Manually merged
Sybren A. Stüvel merged 4 commits from PratikPB2123/blender:107918-gradient-lock-vgroup into main 2023-07-27 11:32:38 +02:00

4 Commits

Author SHA1 Message Date
c4dcdfe678 Merge branch 'main' into 107918-gradient-lock-vgroup 2023-07-26 15:06:39 +05:30
36d7a7e9dd New function BKE_object_defgroup_active_is_locked
Use it to check whether active vertex group is locked or not (for
painting)
2023-07-26 14:59:31 +05:30
73b0a611fb Use c++ casting 2023-07-07 16:15:46 +05:30
c119cb128d Fix #107918: Weight Gradient tool paints over locked vertex groups
Exit the operator code if `DG_LOCK_WEIGHT` flag is set for active vertex
group to avoid painting over locked vertex group
2023-06-14 16:42:43 +05:30