diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-24 23:13:27 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-24 23:13:27 +0400 |
commit | 0a6ca24661717de8b2bd92e732144e0046eed681 (patch) | |
tree | e598b05b422f527657022499b0a90f4c5ab01bac /source/blender/renderconverter/intern/convertBlenderScene.c | |
parent | 13e6257ddfe525eddaf2aef31a8dbf1c2f51762f (diff) |
- warning fixes
- rare bug in calc_vertexnormals, fourth vertex normal was not flipped
correctly (found thanks to my new auto regression test script)
Diffstat (limited to 'source/blender/renderconverter/intern/convertBlenderScene.c')
-rw-r--r-- | source/blender/renderconverter/intern/convertBlenderScene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/renderconverter/intern/convertBlenderScene.c b/source/blender/renderconverter/intern/convertBlenderScene.c index cd71e1df7f2..847648f6893 100644 --- a/source/blender/renderconverter/intern/convertBlenderScene.c +++ b/source/blender/renderconverter/intern/convertBlenderScene.c @@ -494,7 +494,7 @@ static void calc_vertexnormals(int startvert, int startvlak) fac4= saacos(-n3[0]*n4[0]-n3[1]*n4[1]-n3[2]*n4[2]); if(!(vlr->flag & R_NOPUNOFLIP)) { - if( contrpuntnormr(vlr->n, adrve4->n) ) fac1= -fac1; + if( contrpuntnormr(vlr->n, adrve4->n) ) fac4= -fac4; } adrve4->n[0] +=fac4*vlr->n[0]; |