Cleanup: clang-format
This commit is contained in:
parent
99fff90eab
commit
a6504aa64b
|
@ -517,7 +517,6 @@ typedef bool (*BMLoopPairFilterFunc)(const BMLoop *, const BMLoop *, void *user_
|
|||
#define BM_ELEM_CD_GET_BOOL(ele, offset) \
|
||||
(BLI_assert(offset != -1), *((bool *)((char *)(ele)->head.data + (offset))))
|
||||
|
||||
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
# define BM_ELEM_CD_GET_VOID_P(ele, offset) \
|
||||
(BLI_assert(offset != -1), \
|
||||
|
@ -552,39 +551,35 @@ typedef bool (*BMLoopPairFilterFunc)(const BMLoop *, const BMLoop *, void *user_
|
|||
GENERIC_TYPE_ANY((const float *)POINTER_OFFSET((ele)->head.data, offset), \
|
||||
_BM_GENERIC_TYPE_ELEM_CONST)))
|
||||
|
||||
|
||||
# define BM_ELEM_CD_GET_FLOAT2_P(ele, offset) \
|
||||
(BLI_assert(offset != -1), \
|
||||
_Generic(ele, \
|
||||
GENERIC_TYPE_ANY((float (*)[2])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
GENERIC_TYPE_ANY((float(*)[2])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
_BM_GENERIC_TYPE_ELEM_NONCONST), \
|
||||
GENERIC_TYPE_ANY((const float (*)[2])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
GENERIC_TYPE_ANY((const float(*)[2])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
_BM_GENERIC_TYPE_ELEM_CONST)))
|
||||
|
||||
# define BM_ELEM_CD_GET_FLOAT3_P(ele, offset) \
|
||||
(BLI_assert(offset != -1), \
|
||||
_Generic(ele, \
|
||||
GENERIC_TYPE_ANY((float (*)[3])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
GENERIC_TYPE_ANY((float(*)[3])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
_BM_GENERIC_TYPE_ELEM_NONCONST), \
|
||||
GENERIC_TYPE_ANY((const float (*)[3])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
GENERIC_TYPE_ANY((const float(*)[3])POINTER_OFFSET((ele)->head.data, offset), \
|
||||
_BM_GENERIC_TYPE_ELEM_CONST)))
|
||||
|
||||
|
||||
#else
|
||||
|
||||
# define BM_ELEM_CD_GET_FLOAT_P(ele, offset) \
|
||||
(BLI_assert(offset != -1), (float *)((char *)(ele)->head.data + (offset)))
|
||||
|
||||
# define BM_ELEM_CD_GET_FLOAT2_P(ele, offset) \
|
||||
(BLI_assert(offset != -1), (float (*)[2])((char *)(ele)->head.data + (offset)))
|
||||
(BLI_assert(offset != -1), (float(*)[2])((char *)(ele)->head.data + (offset)))
|
||||
|
||||
# define BM_ELEM_CD_GET_FLOAT3_P(ele, offset) \
|
||||
(BLI_assert(offset != -1), (float (*)[3])((char *)(ele)->head.data + (offset)))
|
||||
(BLI_assert(offset != -1), (float(*)[3])((char *)(ele)->head.data + (offset)))
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define BM_ELEM_CD_SET_FLOAT2(ele, offset, f) \
|
||||
{ \
|
||||
CHECK_TYPE_NONCONST(ele); \
|
||||
|
|
|
@ -75,7 +75,6 @@ typedef struct ParticleHairCache {
|
|||
int point_len;
|
||||
} ParticleHairCache;
|
||||
|
||||
|
||||
/**
|
||||
* Ensure all textures and buffers needed for GPU accelerated drawing.
|
||||
*/
|
||||
|
|
|
@ -341,7 +341,13 @@ static void voxel_size_edit_draw(const bContext *C, ARegion *UNUSED(ar), void *a
|
|||
short strdrawlen = 0;
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
UnitSettings *unit = &scene->unit;
|
||||
BKE_unit_value_as_string(str, VOXEL_SIZE_EDIT_MAX_STR_LEN, (double)(cd->voxel_size * unit->scale_length), 4, B_UNIT_LENGTH, unit, true);
|
||||
BKE_unit_value_as_string(str,
|
||||
VOXEL_SIZE_EDIT_MAX_STR_LEN,
|
||||
(double)(cd->voxel_size * unit->scale_length),
|
||||
4,
|
||||
B_UNIT_LENGTH,
|
||||
unit,
|
||||
true);
|
||||
strdrawlen = BLI_strlen_utf8(str);
|
||||
|
||||
immUnbindProgram();
|
||||
|
|
Loading…
Reference in New Issue