Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_extract.h
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | typedef enum eMRDataType { | ||||
| MR_DATA_TAN_LOOP_NOR = 1 << 4, | MR_DATA_TAN_LOOP_NOR = 1 << 4, | ||||
| } eMRDataType; | } eMRDataType; | ||||
| ENUM_OPERATORS(eMRDataType, MR_DATA_TAN_LOOP_NOR) | ENUM_OPERATORS(eMRDataType, MR_DATA_TAN_LOOP_NOR) | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| BLI_INLINE int mesh_render_mat_len_get(Mesh *me) | BLI_INLINE int mesh_render_mat_len_get(const Mesh *me) | ||||
| { | { | ||||
| /* In edit mode, the displayed mesh is stored in the edit-mesh. */ | /* In edit mode, the displayed mesh is stored in the edit-mesh. */ | ||||
| if (me->edit_mesh && me->edit_mesh->mesh_eval_final) { | if (me->edit_mesh && me->edit_mesh->mesh_eval_final) { | ||||
| return MAX2(1, me->edit_mesh->mesh_eval_final->totcol); | return MAX2(1, me->edit_mesh->mesh_eval_final->totcol); | ||||
| } | } | ||||
| return MAX2(1, me->totcol); | return MAX2(1, me->totcol); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines | |||||