diff options
author | Ton Roosendaal <ton@blender.org> | 2007-02-14 17:42:48 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-02-14 17:42:48 +0300 |
commit | 59548a7a747f7a1df8f8f27f7be583675f5a550a (patch) | |
tree | 4cbf2eb3d3372b89233c3de408f389c2ef8164b4 /source/blender/blenkernel/intern/displist.c | |
parent | a7066480da9e4b8ecd28f3d8fca5866ee306b6e2 (diff) |
Bugfix #6042
Shadeless material did not show correct in Shade View3D (Shift+z).
Diffstat (limited to 'source/blender/blenkernel/intern/displist.c')
-rw-r--r-- | source/blender/blenkernel/intern/displist.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/displist.c b/source/blender/blenkernel/intern/displist.c index 2328692bf91..99c48f338c1 100644 --- a/source/blender/blenkernel/intern/displist.c +++ b/source/blender/blenkernel/intern/displist.c @@ -403,8 +403,6 @@ static void fastshade(float *co, float *nor, float *orco, Material *ma, char *co shi.mat= ma; /* set each time... node shaders change it */ RE_shade_external(NULL, &shi, &shr); - VECADD(shr.combined, shr.diff, shr.spec); - a= 256.0f*(shr.combined[0]); col1[0]= CLAMPIS(a, 0, 255); a= 256.0f*(shr.combined[1]); @@ -420,8 +418,6 @@ static void fastshade(float *co, float *nor, float *orco, Material *ma, char *co shi.mat= ma; /* set each time... node shaders change it */ RE_shade_external(NULL, &shi, &shr); - VECADD(shr.combined, shr.diff, shr.spec); - a= 256.0f*(shr.combined[0]); col2[0]= CLAMPIS(a, 0, 255); a= 256.0f*(shr.combined[1]); |