Blender Git Loki
Git Commits -> Revision ef60979
Revision ef60979 by Bastien Montagne (master) February 23, 2017, 10:54 (GMT) |
Rework of BKE's mesh_render to support BMesh directly. Note that since there is no (efficient) ways to get arrays of MVert/MEdge/etc. out of a BMesh, I refactored quite heavily internals of BKE_mesh_render. Now, when you do need acess to mesh data to generate cached batches, you create an abstract struct from mesh (either Mesh or BMesh if available), and then use advanced helpers to extract needed data, on a per-item basis (no more handling of arrays of verts/edges/... in batches code). This allows to: * Avoid having to create arrays of BMesh elements. * Take advantage of existing advanced BMesh topology and connectivity data. Reviewers: dfelinto, fclem, merwin Differential Revision: https://developer.blender.org/D2521 |
Commit Details:
Full Hash: ef60979029793c04dab2df051b965a86eeb299f6
Parent Commit: d751676
Lines Changed: +488, -325