Fix T73876 Overlay: Armature: Pose bones display randomly

Caused by unitialized value.
This commit is contained in:
Clément Foucault 2020-02-17 18:39:35 +01:00
parent 5f3b898638
commit f78c407aff
Notes: blender-bot 2023-02-14 06:23:08 +01:00
Referenced by issue #73876, Pose bones display randomly in pose mode
1 changed files with 1 additions and 0 deletions

View File

@ -815,6 +815,7 @@ static bool set_pchan_color(const ArmatureDrawContext *ctx,
case PCHAN_COLOR_SOLID: {
if (bcolor) {
rgb_uchar_to_float(fcolor, (uchar *)bcolor->solid);
fcolor[3] = 1.0f;
/* Meh, hardcoded srgb transform here. */
srgb_to_linearrgb_v4(fcolor, fcolor);
}