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:
authorTon Roosendaal <ton@blender.org>2007-02-14 17:42:48 +0300
committerTon Roosendaal <ton@blender.org>2007-02-14 17:42:48 +0300
commit59548a7a747f7a1df8f8f27f7be583675f5a550a (patch)
tree4cbf2eb3d3372b89233c3de408f389c2ef8164b4
parenta7066480da9e4b8ecd28f3d8fca5866ee306b6e2 (diff)
Bugfix #6042
Shadeless material did not show correct in Shade View3D (Shift+z).
-rw-r--r--source/blender/blenkernel/intern/displist.c4
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]);