diff options
author | Daniel Dunbar <daniel@zuster.org> | 2004-03-21 03:10:05 +0300 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2004-03-21 03:10:05 +0300 |
commit | 86108b3665df7891b5e40b7f1feff1b6528c882f (patch) | |
tree | 85aa75d07b414267515c9cee7647714de49daa23 /source | |
parent | 44a74dbf29cb17544efbcfd425d3427bd3dfc61a (diff) |
- removed unused sortfaces function
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/include/BDR_editobject.h | 2 | ||||
-rw-r--r-- | source/blender/src/editobject.c | 40 |
2 files changed, 0 insertions, 42 deletions
diff --git a/source/blender/include/BDR_editobject.h b/source/blender/include/BDR_editobject.h index 6955fd833de..df5def7a7e9 100644 --- a/source/blender/include/BDR_editobject.h +++ b/source/blender/include/BDR_editobject.h @@ -109,8 +109,6 @@ void selectlinks(int nr); void image_aspect(void); void set_ob_ipoflags(void); void select_select_keys(void); -int verg_hoogste_zco(const void *a1, const void *a2); -void sortfaces(void); int vergbaseco(const void *a1, const void *a2); void auto_timeoffs(void); void texspace_edit(void); diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 1e476134c37..27d319df53b 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -7087,46 +7087,6 @@ void select_select_keys(void) } -MVert *verg_vert; - -int verg_hoogste_zco(const void *a1, const void *a2) -{ - const MFace *x1=a1, *x2=a2; - float z1, z2; - MVert *v1, *v2, *v3; - - v1= verg_vert+x1->v1; - v2= verg_vert+x1->v2; - v3= verg_vert+x1->v3; - z1= MAX3(v1->co[2], v2->co[2], v3->co[2]); - - v1= verg_vert+x2->v1; - v2= verg_vert+x2->v2; - v3= verg_vert+x2->v3; - z2= MAX3(v1->co[2], v2->co[2], v3->co[2]); - - if( z1 > z2 ) return 1; - else if( z1 < z2) return -1; - return 0; -} - - - -void sortfaces(void) -{ - Mesh *me; - - if(G.scene->id.lib) return; - - if(G.obedit!=0 || BASACT==0 || OBACT->type!= OB_MESH) return; - if(okee("Sort faces")==0) return; - - me= OBACT->data; - verg_vert= me->mvert; - - qsort(me->mface, me->totface, sizeof(MFace), verg_hoogste_zco); -} - int vergbaseco(const void *a1, const void *a2) { Base **x1, **x2; |