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>2008-03-30 21:29:32 +0400
committerTon Roosendaal <ton@blender.org>2008-03-30 21:29:32 +0400
commit8c3c1c4a0be88480d6e5fb93f9a63c932d2057f6 (patch)
treefa4309afe208021419bd2c9d420e775920333672 /source/blender/src/drawobject.c
parentd9de141077873c9379d0bd6ea745b60f5180c4d2 (diff)
The next testing build, the 2.45-16, nicked "Gamera". :)
(Also: removed the ugly arbitrary 2 x rgb color hack that tried to make shadeless color "useful" in opengl solid mode. Without overflowing color it at least now shows the color you created.)
Diffstat (limited to 'source/blender/src/drawobject.c')
-rw-r--r--source/blender/src/drawobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index e3c11c80468..617b38d0018 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -213,9 +213,9 @@ int init_gl_materials(Object *ob, int check_alpha)
if(a<MAXMATBUF) {
if (ma->mode & MA_SHLESS) {
- matbuf[a][0][0]= 2*ma->r;
- matbuf[a][0][1]= 2*ma->g;
- matbuf[a][0][2]= 2*ma->b;
+ matbuf[a][0][0]= ma->r;
+ matbuf[a][0][1]= ma->g;
+ matbuf[a][0][2]= ma->b;
} else {
matbuf[a][0][0]= (ma->ref+ma->emit)*ma->r;
matbuf[a][0][1]= (ma->ref+ma->emit)*ma->g;