Vertex Paint: Add set vertex colors option to lock alpha #111002
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#111002
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "lichtwerk/blender:110014"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 (would always sets the Alpha component to '1').Now add an "Affect Alpha" option (similar to what we have for brushes)
and when that is disabled, existing alpha is locked.
Fixes #110014
Works fine. The only issue I see is that the redo panel cannot undo the new alpha color that was set.
So if the "Affect Alpha" was disabled when executing the operation and then the option is toggled, it will properly fill the alpha as well.
But when "Affect Alpha" was enabled it will fill the Alpha and toggling the option will not undo this result.
I think I see what is going on, this needs special sculpt undo handling (similar to what
transform_active_color
is doing -- or using it directly).Fix #110014: Set Vertex Colors always sets the Alpha component to '1'to WIP: Fix #110014: Set Vertex Colors always sets the Alpha component to '1'Seems reasonable! As far as I can tell this is more of a new feature than a bug fix, might be nice for the commit title to reflect that. Also, what is making the PR WIP? Generally that means it's not ready for review.
@ -2250,0 +2261,4 @@
"affect_alpha",
true,
"Affect Alpha",
"When this is disabled, lock existing alpha when setting vertex colors");
UI descriptions of booleans should generally be phrased to describe what the option does when it's turned on, i.e. "Chane the alpha channel of colors"
https://wiki.blender.org/wiki/Human_Interface_Guidelines/Tooltips
I think that's clear enough, it's not a complex idea
WIP: Fix #110014: Set Vertex Colors always sets the Alpha component to '1'to Vertex Paint Set Vertex Colors: add option to lock alphaChanged
This was because of the Undo issue (also see @JulienKaspar comment), would be nice if you could check that again.
Works like expected to me.
@ -2249,1 +2277,4 @@
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
RNA_def_boolean(ot->srna,
"affect_alpha",
Prefer calling this "alpha", as we have for
bpy.data.images.new(..)
&IMAGE_OT_tile_add
... oruse_alpha
.@ -2250,0 +2280,4 @@
"affect_alpha",
true,
"Affect Alpha",
"Set to full Alpha, lock existing alpha when disabled");
Sorry to be picky, the grammar isn't quite right here though, since these are two sentences separated with a comma, which is also a bit awkward. What about something more like "Set color completely opaque instead of reusing existing alpha"?
Vertex Paint Set Vertex Colors: add option to lock alphato Vertex Paint: Add set vertex colors option to lock alpha