diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-23 15:36:45 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-23 17:27:03 +0300 |
commit | 5c89c689db5c68602aecb55a0a7891059021eeaf (patch) | |
tree | cbd13e57001168e00ee6b1f53b2b59381f269ca3 /source/blender/blenkernel/BKE_editmesh.h | |
parent | 8634c4646ead98db1c6a1a76393a77f911b50cab (diff) |
Fix selection and snapping misusing texture space as boundbox
This fixes the regression from T70103 introduced by the fix for T70103.
Diffstat (limited to 'source/blender/blenkernel/BKE_editmesh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_editmesh.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_editmesh.h b/source/blender/blenkernel/BKE_editmesh.h index 062968eddfc..37d84563402 100644 --- a/source/blender/blenkernel/BKE_editmesh.h +++ b/source/blender/blenkernel/BKE_editmesh.h @@ -28,8 +28,9 @@ #include "BKE_customdata.h" #include "bmesh.h" -struct BMLoop; struct BMesh; +struct BMLoop; +struct BoundBox; struct Depsgraph; struct EditMeshData; struct Mesh; @@ -59,6 +60,9 @@ typedef struct BMEditMesh { struct Mesh *mesh_eval_final, *mesh_eval_cage; + /** Cached cage bounding box for selection. */ + struct BoundBox *bb_cage; + /*derivedmesh stuff*/ CustomData_MeshMasks lastDataMask; unsigned char (*derivedVertColor)[4]; @@ -90,6 +94,7 @@ void BKE_editmesh_color_ensure(BMEditMesh *em, const char htype); float (*BKE_editmesh_vert_coords_alloc_orco(BMEditMesh *em, int *r_vert_len))[3]; void BKE_editmesh_lnorspace_update(BMEditMesh *em); void BKE_editmesh_ensure_autosmooth(BMEditMesh *em); +struct BoundBox *BKE_editmesh_cage_boundbox_get(BMEditMesh *em); /* editderivedmesh.c */ /* should really be defined in editmesh.c, but they use 'EditDerivedBMesh' */ |