Fix selection and snapping misusing texture space as boundbox

This fixes the regression from T70103 introduced by the fix for T70103.
This commit is contained in:
2019-09-23 14:36:45 +02:00
parent 8634c4646e
commit 5c89c689db
4 changed files with 29 additions and 4 deletions

View File

@@ -49,8 +49,7 @@ void select_id_object_min_max(Object *obj, float r_min[3], float r_max[3])
BoundBox *bb;
BMEditMesh *em = BKE_editmesh_from_object(obj);
if (em) {
/* Use Object Texture Space. */
bb = BKE_mesh_texspace_get(em->mesh_eval_cage, NULL, NULL, NULL);
bb = BKE_editmesh_cage_boundbox_get(em);
}
else {
bb = BKE_object_boundbox_get(obj);