From 8f817de0cbef41dac81e6c7665ada509c3fe2988 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 8 Mar 2019 09:29:17 +1100 Subject: Cleanup: use plural names for Main lists Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning. --- source/blender/blenkernel/BKE_main.h | 72 ++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'source/blender/blenkernel/BKE_main.h') diff --git a/source/blender/blenkernel/BKE_main.h b/source/blender/blenkernel/BKE_main.h index 48f9ac1a0da..03f9f9a21ea 100644 --- a/source/blender/blenkernel/BKE_main.h +++ b/source/blender/blenkernel/BKE_main.h @@ -84,42 +84,42 @@ typedef struct Main { BlendThumbnail *blen_thumb; struct Library *curlib; - ListBase scene; - ListBase library; - ListBase object; - ListBase mesh; - ListBase curve; - ListBase mball; - ListBase mat; - ListBase tex; - ListBase image; - ListBase lattice; - ListBase light; - ListBase camera; - ListBase ipo; // XXX deprecated - ListBase key; - ListBase world; - ListBase screen; - ListBase vfont; - ListBase text; - ListBase speaker; - ListBase lightprobe; - ListBase sound; - ListBase collection; - ListBase armature; - ListBase action; - ListBase nodetree; - ListBase brush; - ListBase particle; - ListBase palette; - ListBase paintcurve; - ListBase wm; - ListBase gpencil; - ListBase movieclip; - ListBase mask; - ListBase linestyle; - ListBase cachefile; - ListBase workspace; + ListBase scenes; + ListBase libraries; + ListBase objects; + ListBase meshes; + ListBase curves; + ListBase metaballs; + ListBase materials; + ListBase textures; + ListBase images; + ListBase lattices; + ListBase lights; + ListBase cameras; + ListBase ipo; /* Deprecated (only for versioning). */ + ListBase shapekeys; + ListBase worlds; + ListBase screens; + ListBase fonts; + ListBase texts; + ListBase speakers; + ListBase lightprobes; + ListBase sounds; + ListBase collections; + ListBase armatures; + ListBase actions; + ListBase nodetrees; + ListBase brushes; + ListBase particles; + ListBase palettes; + ListBase paintcurves; + ListBase wm; /* Singleton (exception). */ + ListBase gpencils; + ListBase movieclips; + ListBase masks; + ListBase linestyles; + ListBase cachefiles; + ListBase workspaces; /* Must be generated, used and freed by same code - never assume this is valid data unless you know * when, who and how it was created. -- cgit v1.2.3