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>2013-06-09 22:05:50 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-09 22:05:50 +0400
commit860fce4eb97e4961065afad76f7b0915600b1ddb (patch)
tree3959f6c2154ce2ad1482e13bbde5d8e67b4d4f8f /source/blender/editors/mesh/editface.c
parent13b3b425f8ed2fdedd15b828c1c7b3559f2a2b66 (diff)
Code cleanup: removed some unused UI button types
* CHARTAB: not needed anymore with improved copy/paste support and text input. * IDPOIN: replaced by SEARCH_MENU. * ICONROW/ICONTEXTROW: replaced by RNA enums. * NUMABS: can use min/max limits instead. * BUT_TOGDUAL, TOG3, TOGR, SLI: not used in 2.5 interface.
Diffstat (limited to 'source/blender/editors/mesh/editface.c')
-rw-r--r--source/blender/editors/mesh/editface.c73
1 files changed, 0 insertions, 73 deletions
diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c
index a7afa3f108b..234a45856d2 100644
--- a/source/blender/editors/mesh/editface.c
+++ b/source/blender/editors/mesh/editface.c
@@ -395,79 +395,6 @@ bool paintface_minmax(Object *ob, float r_min[3], float r_max[3])
return ok;
}
-/* *************************************** */
-#if 0
-static void seam_edgehash_insert_face(EdgeHash *ehash, MPoly *mp, MLoop *loopstart)
-{
- MLoop *ml1, *ml2;
- int a;
-
- for (a = 0; a < mp->totloop; a++) {
- ml1 = loopstart + a;
- ml2 = loopstart + (a + 1) % mp->totloop;
-
- BLI_edgehash_insert(ehash, ml1->v, ml2->v, NULL);
- }
-}
-
-void seam_mark_clear_tface(Scene *scene, short mode)
-{
- Mesh *me;
- MPoly *mp;
- MLoop *ml1, *ml2;
- MEdge *med;
- int a, b;
-
- me = BKE_mesh_from_object(OBACT);
- if (me == 0 || me->totpoly == 0) return;
-
- if (mode == 0)
- mode = pupmenu(IFACE_("Seams %t|Mark Border Seam %x1|Clear Seam %x2"));
-
- if (mode != 1 && mode != 2)
- return;
-
- if (mode == 2) {
- EdgeHash *ehash = BLI_edgehash_new();
-
- for (a = 0, mp = me->mpoly; a < me->totpoly; a++, mp++)
- if (!(mp->flag & ME_HIDE) && (mp->flag & ME_FACE_SEL))
- seam_edgehash_insert_face(ehash, mp, me->mloop + mp->loopstart);
-
- for (a = 0, med = me->medge; a < me->totedge; a++, med++)
- if (BLI_edgehash_haskey(ehash, med->v1, med->v2))
- med->flag &= ~ME_SEAM;
-
- BLI_edgehash_free(ehash, NULL);
- }
- else {
- /* mark edges that are on both selected and deselected faces */
- EdgeHash *ehash1 = BLI_edgehash_new();
- EdgeHash *ehash2 = BLI_edgehash_new();
-
- for (a = 0, mp = me->mpoly; a < me->totpoly; a++, mp++) {
- if ((mp->flag & ME_HIDE) || !(mp->flag & ME_FACE_SEL))
- seam_edgehash_insert_face(ehash1, mp, me->mloop + mp->loopstart);
- else
- seam_edgehash_insert_face(ehash2, mp, me->mloop + mp->loopstart);
- }
-
- for (a = 0, med = me->medge; a < me->totedge; a++, med++)
- if (BLI_edgehash_haskey(ehash1, med->v1, med->v2) &&
- BLI_edgehash_haskey(ehash2, med->v1, med->v2))
- med->flag |= ME_SEAM;
-
- BLI_edgehash_free(ehash1, NULL);
- BLI_edgehash_free(ehash2, NULL);
- }
-
-// XXX if (G.debug_value == 8)
-// unwrap_lscm(1);
-
- me->drawflag |= ME_DRAWSEAMS;
-}
-#endif
-
bool paintface_mouse_select(struct bContext *C, Object *ob, const int mval[2], bool extend, bool deselect, bool toggle)
{
Mesh *me;