diff options
author | Ben Batt <benbatt@gmail.com> | 2006-12-06 15:34:26 +0300 |
---|---|---|
committer | Ben Batt <benbatt@gmail.com> | 2006-12-06 15:34:26 +0300 |
commit | c0becb45323d76ba0cf6840b264f20428c275e11 (patch) | |
tree | 4286a96787120184b70dbdf1aad089031b7b9621 /source/blender/src/meshtools.c | |
parent | a720296999b1a422dd63f04d0e205599140ea06c (diff) |
Removed SlowerDraw and FasterDraw buttons in Mesh panel after discussion
with Ton on IRC. This feature was old, something of a hack and didn't really
work well with the modifier stack. To paraphrase Ton: We want to make blender
higher quality, so poorly thought out code should be removed, or replaced
with decent implementations.
Diffstat (limited to 'source/blender/src/meshtools.c')
-rw-r--r-- | source/blender/src/meshtools.c | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/source/blender/src/meshtools.c b/source/blender/src/meshtools.c index 3d874021497..7d07b3f89d5 100644 --- a/source/blender/src/meshtools.c +++ b/source/blender/src/meshtools.c @@ -417,74 +417,6 @@ int join_mesh(void) } -void fasterdraw(void) -{ - Base *base; - Mesh *me; - int toggle, a; - - if(G.obedit || G.vd==NULL) return; - - /* reset flags */ - me= G.main->mesh.first; - while(me) { - me->flag &= ~ME_ISDONE; - me= me->id.next; - } - - base= FIRSTBASE; - while(base) { - if( TESTBASELIB(base) && (base->object->type==OB_MESH)) { - me= base->object->data; - if(me->id.lib==0 && (me->flag & ME_ISDONE)==0) { - me->flag |= ME_ISDONE; - toggle= 0; - for(a=0; a<me->totedge; a++) { - MEdge *med = &me->medge[a]; - - if( (med->flag & ME_EDGEDRAW) && !( (toggle++) & 3) ) { - med->flag ^= ME_EDGEDRAW; - } - } - } - } - base= base->next; - } - - /* important?: reset flags again */ - me= G.main->mesh.first; - while(me) { - me->flag &= ~ME_ISDONE; - me= me->id.next; - } - - allqueue(REDRAWVIEW3D, 0); -} - -void slowerdraw(void) /* reset fasterdraw */ -{ - Base *base; - Mesh *me; - int a; - - if(G.obedit || G.vd==NULL) return; - - base= FIRSTBASE; - while(base) { - if( TESTBASELIB(base) && (base->object->type==OB_MESH)) { - me= base->object->data; - if(me->id.lib==0) { - for(a=0; a<me->totedge; a++) { - me->medge[a].flag |= ME_EDGEDRAW; - } - } - } - base= base->next; - } - - allqueue(REDRAWVIEW3D, 0); -} - /* ********************** SORT FACES ******************* */ static void permutate(void *list, int num, int size, int *index) |