From 8f028ec8408c35c2029e6a0caeb7eb27dc8e53f3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 29 Apr 2017 16:52:12 +1000 Subject: Cleanup: rename struct for private engine data Also remove from pass list (there were some duplicate unused entries). --- source/blender/draw/modes/edit_lattice_mode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/draw/modes/edit_lattice_mode.c') diff --git a/source/blender/draw/modes/edit_lattice_mode.c b/source/blender/draw/modes/edit_lattice_mode.c index 61c01fb3f48..32411ea470d 100644 --- a/source/blender/draw/modes/edit_lattice_mode.c +++ b/source/blender/draw/modes/edit_lattice_mode.c @@ -81,7 +81,7 @@ typedef struct EDIT_LATTICE_StorageList { * free with MEM_freeN() when viewport is freed. * (not per object) */ struct CustomStruct *block; - struct g_data *g_data; + struct EDIT_LATTICE_PrivateData *g_data; } EDIT_LATTICE_StorageList; typedef struct EDIT_LATTICE_Data { @@ -108,12 +108,12 @@ static struct { } e_data = {NULL}; /* Engine data */ -typedef struct g_data { +typedef struct EDIT_LATTICE_PrivateData { /* This keeps the references of the shading groups for * easy access in EDIT_LATTICE_cache_populate() */ DRWShadingGroup *wire_shgrp; DRWShadingGroup *vert_shgrp; -} g_data; /* Transient data */ +} EDIT_LATTICE_PrivateData; /* Transient data */ /* *********** FUNCTIONS *********** */ @@ -164,7 +164,7 @@ static void EDIT_LATTICE_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__); } { -- cgit v1.2.3