diff options
author | Ton Roosendaal <ton@blender.org> | 2005-07-12 21:46:39 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-07-12 21:46:39 +0400 |
commit | 6787e21a6367ac73f1704b2851cb8d7979b50133 (patch) | |
tree | fe17372252614790212c77aac34072436e034ef2 /source/blender/src/drawarmature.c | |
parent | f4e1ea0b62d89a7e6dbe207c0ac374e71b6d1244 (diff) |
Two little bugskis;
- Solid armature drawing didn't do well for negative scaled armatures
- Layer Ipos were not evaluated for invisible objects (there goes another
exception bypassing dependency...!)
Diffstat (limited to 'source/blender/src/drawarmature.c')
-rw-r--r-- | source/blender/src/drawarmature.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c index 43668b37089..f285a40195d 100644 --- a/source/blender/src/drawarmature.c +++ b/source/blender/src/drawarmature.c @@ -512,6 +512,7 @@ void draw_armature(Object *ob, int dt) /* we use color for solid lighting */ glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE); + glFrontFace((ob->transflag&OB_NEG_SCALE)?GL_CW:GL_CCW); // only for lighting... /* If we're in editmode, draw the Global edit data */ if(ob==G.obedit || (G.obedit && ob->data==G.obedit->data)) { @@ -575,6 +576,8 @@ void draw_armature(Object *ob, int dt) arm->flag &= ~ARM_POSEMODE; } } + /* resore */ + glFrontFace(GL_CCW); } |