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:
authorSimon Clitherow <aphex@nildram.co.uk>2003-07-11 00:53:59 +0400
committerSimon Clitherow <aphex@nildram.co.uk>2003-07-11 00:53:59 +0400
commitd4c849391ebaf3f97def00da17a8c15df548cc85 (patch)
treeeaa2c3d299a58b5828ef10a4e265c48e06da77f6
parent5d118d2b62bde610e6cc5c47d8901bdeb1eb6c3e (diff)
- fixed a problem with face select and vertex paint modes by removing
the check for nors != NULL (sorry miencho!).
-rw-r--r--source/blender/src/drawobject.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index a890d6d9d69..bc24100b954 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -1791,7 +1791,12 @@ static void drawmeshsolid(Object *ob, float *nors)
if(ob->dtx & OB_DRAWWIRE) drawMeshWireExtra(ob);
}
- else if(nors) { /* should never be zero, but is weak code... the displist system needs a make over (ton) */
+ else { /* [nors] should never be zero, but is weak code... the displist
+ system needs a make over (ton)
+
+ Face select and vertex paint calls drawmeshsolid() with nors = NULL!
+ It's still weak code but hey, as ton says, the whole system needs
+ a good thrashing! ;) (aphex) */
start= 0; end= me->totface;
set_buildvars(ob, &start, &end);