diff options
Diffstat (limited to 'source/blender/draw/modes/paint_weight_mode.c')
-rw-r--r-- | source/blender/draw/modes/paint_weight_mode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/modes/paint_weight_mode.c b/source/blender/draw/modes/paint_weight_mode.c index 0eb42cb51d5..fe5fdf9ba91 100644 --- a/source/blender/draw/modes/paint_weight_mode.c +++ b/source/blender/draw/modes/paint_weight_mode.c @@ -72,7 +72,7 @@ typedef struct PAINT_WEIGHT_StorageList { * free with MEM_freeN() when viewport is freed. * (not per object) */ struct CustomStruct *block; - struct g_data *g_data; + struct PAINT_WEIGHT_PrivateData *g_data; } PAINT_WEIGHT_StorageList; typedef struct PAINT_WEIGHT_Data { @@ -96,11 +96,11 @@ static struct { struct GPUShader *custom_shader; } e_data = {NULL}; /* Engine data */ -typedef struct g_data { +typedef struct PAINT_WEIGHT_PrivateData { /* This keeps the references of the shading groups for * easy access in PAINT_WEIGHT_cache_populate() */ DRWShadingGroup *group; -} g_data; +} PAINT_WEIGHT_PrivateData; /* *********** FUNCTIONS *********** */ @@ -144,7 +144,7 @@ static void PAINT_WEIGHT_cache_init(void *vedata) if (!stl->g_data) { /* Alloc transient pointers */ - stl->g_data = MEM_mallocN(sizeof(g_data), "g_data"); + stl->g_data = MEM_mallocN(sizeof(*stl->g_data), __func__); } { |