Vertex Paint: Add set vertex colors option to lock alpha #111002

Merged
Philipp Oeser merged 5 commits from lichtwerk/blender:110014 into main 2023-08-11 10:39:20 +02:00

5 Commits

Author SHA1 Message Date
Philipp Oeser 4d1360e8d6 address review
- rename bool
- improve tooltip
2023-08-11 10:35:03 +02:00
Philipp Oeser 316560ba80 Merge branch 'main' into 110014 2023-08-11 10:27:51 +02:00
Philipp Oeser 966f7b428d Improve UI description of option 2023-08-10 16:41:01 +02:00
Philipp Oeser 9a122529c5 proper (needs special sculpt) undo
this is basically using the undo strategy from transform_active_color
(16cb13b8a0).

NOTE: it would be even possible to use transform_active_color() all the
way, but this would require more refactoring and additionally, current
code in fill_mesh_color() does a cast which alters Alpha mode (not sure
if this is desired even, but wouldnt want to change this behavior with
this patch) which does not happen in transform_active_color() -- I think
it would be best to look at this separately and possibly unify code at a
later point.
2023-08-10 16:33:00 +02:00
Philipp Oeser fbbe31618f Fix #110014: Set Vertex Colors always sets the Alpha component to '1'
It is a common practice in gamedev to rely on coding various data into
the alpha channel of the mesh and there was no way to preserve that when
using the `Set Vertex Colors` operator.

Now add an "Affect Alpha" option (similar to what we have for brushes)
and when that is disabled, existing alpha is locked.
2023-08-10 13:57:16 +02:00