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-09-07 09:54:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-07 09:54:54 +0400
commitacfff7a65f551f8d7313a93137b1beb4c338ff27 (patch)
tree6d9eb871d81c0fdf684914d8e5ccca1d5f93f4be /source/blender/editors/include
parente70beaacf495f737057bc8b7d0f02818a17acc51 (diff)
fixes for weight paint mode:
- sample weight didnt work when the object was transformed. - sample weight didnt work when vertex selection was enabled. - 'All faces' option is used by weight paint mode, but there was no UI access. add ED_mesh_pick_face_vert(). which uses the face selection buffer but returns the closest vertex.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/ED_mesh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h
index 528eeab0473..1d4fbe81e02 100644
--- a/source/blender/editors/include/ED_mesh.h
+++ b/source/blender/editors/include/ED_mesh.h
@@ -281,6 +281,7 @@ int *mesh_get_x_mirror_faces(struct Object *ob, struct BMEditMesh *em)
int ED_mesh_pick_vert(struct bContext *C, struct Mesh *me, const int mval[2], unsigned int *index, int size);
int ED_mesh_pick_face(struct bContext *C, struct Mesh *me, const int mval[2], unsigned int *index, int size);
+int ED_mesh_pick_face_vert(struct bContext *C, struct Mesh *me, struct Object *ob, const int mval[2], unsigned int *index, int size);
#define ED_MESH_PICK_DEFAULT_VERT_SIZE 50
#define ED_MESH_PICK_DEFAULT_FACE_SIZE 3