[Bf-blender-cvs] [f78c407aff0] master: Fix T73876 Overlay: Armature: Pose bones display randomly

Clément Foucault noreply at git.blender.org
Mon Feb 17 19:38:06 CET 2020


Commit: f78c407aff0f075e525ba3a102acda6b185215fe
Author: Clément Foucault
Date:   Mon Feb 17 18:39:35 2020 +0100
Branches: master
https://developer.blender.org/rBf78c407aff0f075e525ba3a102acda6b185215fe

Fix T73876 Overlay: Armature: Pose bones display randomly

Caused by unitialized value.

===================================================================

M	source/blender/draw/engines/overlay/overlay_armature.c

===================================================================

diff --git a/source/blender/draw/engines/overlay/overlay_armature.c b/source/blender/draw/engines/overlay/overlay_armature.c
index c80cda26fa2..bf763f1f114 100644
--- a/source/blender/draw/engines/overlay/overlay_armature.c
+++ b/source/blender/draw/engines/overlay/overlay_armature.c
@@ -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);
       }



More information about the Bf-blender-cvs mailing list