Blender Git Commit Log

Git Commits -> Revision 99cfad6

Revision 99cfad6 by Dalai Felinto (master)
January 25, 2017, 09:01 (GMT)
Convert MBC_ API to Mesh (instead of derived mesh) and move it to mesh_render

This includes a few fixes in the MBC_ api.

The idea here is for this to be the only interface the render engines
will deal with for the meshes.

If we need to expose special options for sculpting engine we refactor
this accordingly. But for now we are shaping this in a per-case base.

Note:
* We still need to hook up to the depsgraph to force clear/update of
batch_cache when mesh changes

(I'm waiting for Sergey Sharybin's depsgraph update for this though)

* Also ideally we could/should use BMesh directly instead of
DerivedMesh, but this will do for now.

Note 2:
In the end I renamed the `BKE_mesh_render` functions to `static
mesh_render`. We can re-expose them as BKE_* later once we need it.

Reviewers: merwin

Subscribers: fclem

Differential Revision: https://developer.blender.org/D2476

Commit Details:

Full Hash: 99cfad6a015715a090fa2e1d808196dd1a02b390
Parent Commit: 5be2a62
Lines Changed: +685, -365

2 Added Paths:

/source/blender/blenkernel/BKE_mesh_render.h (+42, -0) (View)
/source/blender/blenkernel/intern/mesh_render.c (+619, -0) (View)

7 Modified Paths:

/source/blender/blenkernel/BKE_DerivedMesh.h (+2, -5) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+2, -0) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+1, -12) (Diff)
/source/blender/blenkernel/intern/mesh.c (+4, -0) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+13, -347) (Diff)
/source/blender/gpu/gawain/batch.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021