Fix T77295: Snapping in edit mode only works for non-selected polys/verts/edges
Caused by the optimization of `Skip EditMesh to Mesh Conversion`. Now that EditMesh is used when the Mesh has no modifiers, do not skip the selected elements.
This commit is contained in:
parent
fd8d245e6a
commit
098008f42d
Notes:
blender-bot
2023-02-14 02:43:21 +01:00
Referenced by commit 8189471912
, Fix T94392: 3D Cursor surface projection onto hidden geometry
Referenced by issue #77295, Snapping in edit mode only works for non-selected polys/verts/edges
|
@ -634,12 +634,15 @@ static void initSnappingMode(TransInfo *t)
|
|||
t->tsnap.object_context = ED_transform_snap_object_context_create_view3d(
|
||||
t->scene, 0, t->region, t->view);
|
||||
|
||||
ED_transform_snap_object_context_set_editmesh_callbacks(
|
||||
t->tsnap.object_context,
|
||||
(bool (*)(BMVert *, void *))BM_elem_cb_check_hflag_disabled,
|
||||
bm_edge_is_snap_target,
|
||||
bm_face_is_snap_target,
|
||||
POINTER_FROM_UINT((BM_ELEM_SELECT | BM_ELEM_HIDDEN)));
|
||||
if (t->data_type == TC_MESH_VERTS) {
|
||||
/* Ignore elements being transformed. */
|
||||
ED_transform_snap_object_context_set_editmesh_callbacks(
|
||||
t->tsnap.object_context,
|
||||
(bool (*)(BMVert *, void *))BM_elem_cb_check_hflag_disabled,
|
||||
bm_edge_is_snap_target,
|
||||
bm_face_is_snap_target,
|
||||
POINTER_FROM_UINT((BM_ELEM_SELECT | BM_ELEM_HIDDEN)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue