diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-08-21 19:19:02 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-08-22 15:59:56 +0300 |
commit | c32cc3e43e49009892e3ecfe0f9e91c98592f98a (patch) | |
tree | 4c7c173e7fdeb1bbb5ea2081710aa3aa24137f84 /source/blender/editors/include | |
parent | 4abb060edfc741c19ec0105d7be6a27fb4153b9f (diff) |
Multi-Objects: MESH_OT_shortest_path_pick
This fully works as "expected", however it seems strange when
there is no selected vertex in the non-active object.
In 2.7x if you join two monkeys, select a vertex in one of them and
try to use this operator in the other it will select the lonely newly
selected vertex.
If you split both monkeys and do this in 2.8 while multi-editing them
you won't get nothing when trying to ctrl+RMB any vertex in the monkey
object that has nothing selected yet.
I propose to have this addressed in an upcoming patch where we always
select a vertex if no vertex was previously selected.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_mesh.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h index 0a884e7909b..c084033bbb6 100644 --- a/source/blender/editors/include/ED_mesh.h +++ b/source/blender/editors/include/ED_mesh.h @@ -35,6 +35,7 @@ extern "C" { #endif +struct Base; struct ID; struct View3D; struct ARegion; @@ -169,6 +170,13 @@ struct BMFace *EDBM_face_find_nearest_ex( struct BMFace *EDBM_face_find_nearest( struct ViewContext *vc, float *r_dist); +bool EDBM_unified_findnearest( + struct ViewContext *vc, + struct Base **r_base, + struct BMVert **r_eve, + struct BMEdge **r_eed, + struct BMFace **r_efa); + bool EDBM_select_pick(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); void EDBM_selectmode_set(struct BMEditMesh *em); |