Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_extract.h
| Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
| typedef enum eMRExtractType { | typedef enum eMRExtractType { | ||||
| MR_EXTRACT_BMESH, | MR_EXTRACT_BMESH, | ||||
| MR_EXTRACT_MAPPED, | MR_EXTRACT_MAPPED, | ||||
| MR_EXTRACT_MESH, | MR_EXTRACT_MESH, | ||||
| } eMRExtractType; | } eMRExtractType; | ||||
| BLI_INLINE int mesh_render_mat_len_get(Mesh *me) | BLI_INLINE int mesh_render_mat_len_get(Mesh *me) | ||||
| { | { | ||||
| /* In edit mode, the displayed mesh is stored in the edit-mesh. */ | |||||
| if (me->edit_mesh && me->edit_mesh->mesh_eval_final) { | |||||
| return MAX2(1, me->edit_mesh->mesh_eval_final->totcol); | |||||
| } | |||||
| return MAX2(1, me->totcol); | return MAX2(1, me->totcol); | ||||
| } | } | ||||
| typedef struct MeshBufferCache { | typedef struct MeshBufferCache { | ||||
| /* Every VBO below contains at least enough | /* Every VBO below contains at least enough | ||||
| * data for every loops in the mesh (except fdots and skin roots). | * data for every loops in the mesh (except fdots and skin roots). | ||||
| * For some VBOs, it extends to (in this exact order) : | * For some VBOs, it extends to (in this exact order) : | ||||
| * loops + loose_edges*2 + loose_verts */ | * loops + loose_edges*2 + loose_verts */ | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||