[Bf-blender-cvs] [f4e9620effa] blender2.8: Fix crash on armature drawing

Dalai Felinto noreply at git.blender.org
Sun May 6 00:24:06 CEST 2018


Commit: f4e9620effaf40597967a0e5b82d4a4dd803c5ef
Author: Dalai Felinto
Date:   Sun May 6 00:23:13 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBf4e9620effaf40597967a0e5b82d4a4dd803c5ef

Fix crash on armature drawing

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

M	source/blender/draw/intern/draw_armature.c

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

diff --git a/source/blender/draw/intern/draw_armature.c b/source/blender/draw/intern/draw_armature.c
index 689f0770241..d2a36f2794c 100644
--- a/source/blender/draw/intern/draw_armature.c
+++ b/source/blender/draw/intern/draw_armature.c
@@ -749,7 +749,7 @@ static void bone_hint_color_shade(float hint_color[4], const float color[4])
 {
 	mul_v3_v3fl(hint_color, color, HINT_MUL);
 	cp_shade_color3f(hint_color, -HINT_SHADE);
-	hint_color[4] = 1.0f;
+	hint_color[3] = 1.0f;
 }
 
 static const float *get_bone_hint_color(



More information about the Bf-blender-cvs mailing list