Blender Git Loki

Git Commits -> Revision 15279c0

June 12, 2017, 07:22 (GMT)
Do not include BKE_mesh.h in bmesh_class.h

We absolutely avoid such include unless totally mandatory, here we can
simply keep lnorspaces array a pointer in BMesh struct, and allocate it
on demand. Also, was breaking bmesh tests building.

Note: this totally breaks undo/redo, but previous code was utterly
wrong here as well (shallow copy of lnorspaces, ending up sharing whole
internal memory -> crash garanteed ;) ). Think we can skip that struct
for undo/redo for now at least, we can rebuild it in those cases imho...

Commit Details:

Full Hash: 15279c04d7946946f7b56f97783338958e4f2e0a
Parent Commit: cd9939f
Lines Changed: +31, -16

5 Modified Paths:

/source/blender/bmesh/bmesh_class.h (+3, -3) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.c (+21, -8) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+2, -1) (Diff)
/source/blender/editors/mesh/editmesh_undo.c (+2, -2) (Diff)
/source/blender/editors/transform/transform.c (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021