From 891a2022c51c2c80d999f5419f255cb7caebeb8c Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 14 Feb 2009 13:07:09 +0000 Subject: 2.5 View3D: snap menu (SHIFT+S) back. All options are own operators, a (temp?) menu collects them all. Note that the operators have a full name, for the menu it seems too much; still I'd prefer a way to name operators in a way it fits everywhere. That will make a unified translation system possible for example. Also: this code was needed to get 'center view' (numpad dot) in editmode to work. Last note; it uses old transform code to gather vertex info. This is fully local to this C file, and quite simple to replace in future with new transform. --- source/blender/editors/include/ED_mesh.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/include/ED_mesh.h') diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h index e32243fc28f..0353fb8c28d 100644 --- a/source/blender/editors/include/ED_mesh.h +++ b/source/blender/editors/include/ED_mesh.h @@ -120,11 +120,12 @@ void EM_selectmode_set(struct EditMesh *em); void EM_select_flush(struct EditMesh *em); void EM_convertsel(struct EditMesh *em, short oldmode, short selectmode); void EM_validate_selections(struct EditMesh *em); - + /* exported to transform */ int EM_get_actSelection(struct EditMesh *em, struct EditSelection *ese); void EM_editselection_normal(float *normal, struct EditSelection *ese); void EM_editselection_plane(float *plane, struct EditSelection *ese); +void EM_editselection_center(float *center, struct EditSelection *ese); struct UvVertMap *EM_make_uv_vert_map(struct EditMesh *em, int selected, int do_face_idx_array, float *limit); struct UvMapVert *EM_get_uv_map_vert(struct UvVertMap *vmap, unsigned int v); -- cgit v1.2.3