[Bf-blender-cvs] [9215b41dd3e] blender2.8: Armature: Fix BBones base face winding.
Clément Foucault
noreply at git.blender.org
Mon May 7 13:08:31 CEST 2018
Commit: 9215b41dd3eff0136f98f3f1599a4a5e61860518
Author: Clément Foucault
Date: Mon May 7 12:27:59 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB9215b41dd3eff0136f98f3f1599a4a5e61860518
Armature: Fix BBones base face winding.
Was producing wrong outline and backface culling.
===================================================================
M source/blender/draw/intern/draw_cache.c
===================================================================
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index ebcad9cb7d5..1a4a9be00bd 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -1717,8 +1717,8 @@ static const unsigned int bone_box_wire_adjacent_face[24] = {
};
static const unsigned int bone_box_solid_tris[12][3] = {
- {0, 1, 2}, /* bottom */
- {0, 2, 3},
+ {0, 2, 1}, /* bottom */
+ {0, 3, 2},
{0, 1, 5}, /* sides */
{0, 5, 4},
@@ -1741,8 +1741,8 @@ static const unsigned int bone_box_solid_tris[12][3] = {
* See bone_octahedral_solid_tris for more infos.
**/
static const unsigned int bone_box_solid_tris_adjacency[12][6] = {
- { 0, 8, 1, 14, 2, 5},
- { 3, 1, 4, 20, 5, 26},
+ { 0, 5, 1, 14, 2, 8},
+ { 3, 26, 4, 20, 5, 1},
{ 6, 2, 7, 16, 8, 11},
{ 9, 7, 10, 32, 11, 24},
More information about the Bf-blender-cvs
mailing list