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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-26 21:30:41 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-26 21:30:41 +0300
commit21299f2325169959bed5d4416f7850805b4db8c3 (patch)
treed51d9f31b37245f925d0bc725d5960f5a84a19f4 /source/blender/src/drawobject.c
parenta88627d56e902827bfb9a86e17f2e1093bc10d81 (diff)
Going into vertex paint mode without vertex colors, now it doesn't
create vertex colors from shaded mode anymore. Instead there is function in vertex paint mode to create them. Also some fixes for previous commits.
Diffstat (limited to 'source/blender/src/drawobject.c')
-rw-r--r--source/blender/src/drawobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 37c0f87aec6..b71ef3331db 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -4941,10 +4941,11 @@ void draw_object(Base *base, int flag)
if(ob==G.obedit);
else {
- dt= OB_SHADED;
+ if(dt<OB_SOLID)
+ zbufoff= 1;
+ dt= OB_SHADED;
glEnable(GL_DEPTH_TEST);
- if(dt<OB_SOLID) zbufoff= 1;
}
}
else {