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:
authorCampbell Barton <ideasman42@gmail.com>2012-02-27 01:32:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-27 01:32:20 +0400
commit7068fee2dd7e7630ad5aa37971071ab7ac4baeb0 (patch)
tree5af0ad5c75205e497865e5a90daf5fcaef1ebec3 /source/blender/bmesh/bmesh.h
parent5cfab7f52131b506ac1b138305aad34b7ca6e8e0 (diff)
fix for a bmesh glitch when making a face (Fkey).
On a place, Ctrl+T, Fkey would create a quad overlapping the 2 Tris. Now this case is checked for in a general way - if the bounds of the face are already filled in with faces (that _only_ use these edges-verts), then dont create the face. This is an option for the 'edgenet_fill' operator, since creating the face isnt incorrect, just not-what-you-want mostly. added functions * BM_edge_share_vert - returns shared vert between 2 edges. * BM_face_exists_multi, BM_face_exists_multi_edge - check if existing faces fill the edge bounds. * also add BM_ELEM_INTERNAL_TAG so low level functions can tag without conflicting with higher level functions that also rely on tagging elements.
Diffstat (limited to 'source/blender/bmesh/bmesh.h')
-rw-r--r--source/blender/bmesh/bmesh.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/bmesh/bmesh.h b/source/blender/bmesh/bmesh.h
index 61f4cc62ae4..168a8d913a0 100644
--- a/source/blender/bmesh/bmesh.h
+++ b/source/blender/bmesh/bmesh.h
@@ -108,7 +108,10 @@ struct EditMesh;
* only add new flags with care! - campbell */
/* #define BM_ELEM_SPARE (1<<5) */
/* #define BM_ELEM_SPARE (1<<6) */
-/* #define BM_ELEM_NONORMCALC (1<<7) */ /* UNUSED */
+
+#define BM_ELEM_INTERNAL_TAG (1<<7) /* for low level internal API tagging,
+ * since tools may want to tag verts and
+ * not have functions clobber them */
/* Mesh Level Ops */
extern int bm_mesh_allocsize_default[4];