Page MenuHome

Weight Paint: implement a red shade for bones with locked weights.

Authored by Alexander Gavrilov (angavrilov) on Mon, Jan 6, 10:16 AM.



Blender supports locking vertex groups to prevent changes to the
weights. However, as mentioned in comments for D3837, it is hard
to use this because there is no interface for locking in 3D View.

This adds a red shade to bones that are associated with a locked
weight group during weight paint mode, as the first step to adding
such interface. The next step is adding a pie menu for lock/unlock.

Diff Detail

rB Blender

Event Timeline

Jeroen Bakker (jbakker) requested changes to this revision.Wed, Jan 8, 4:26 PM
This revision now requires changes to proceed.Wed, Jan 8, 4:26 PM

Part that we need to improve is the lookups during drawing. It is best to store it in a runtime flag and just read it. Drawing can redraw for anti aliasing.

Use a bone flag instead of a GSet.

I guess this is fine.

Looks good to me from a code perspective.

This revision was not accepted when it landed; it landed in state Needs Review.Sat, Jan 18, 12:05 PM
This revision was automatically updated to reflect the committed changes.