Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-05-07 13:27:59 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-05-07 14:08:21 +0300
commit9215b41dd3eff0136f98f3f1599a4a5e61860518 (patch)
tree2f8930d3f5efcf08c8ee4798d1b6eea789bc70cb /source/blender/draw/intern/draw_cache.c
parent5c728358ec25e18ebc5a11e64956eb620a7703a8 (diff)
Armature: Fix BBones base face winding.
Was producing wrong outline and backface culling.
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r--source/blender/draw/intern/draw_cache.c8
1 files changed, 4 insertions, 4 deletions
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},