Blender Git Commit Log

Git Commits -> Revision 0a93fd7

Revision 0a93fd7 by Campbell Barton (ui-preview-buttons)
May 11, 2015, 03:41 (GMT)
API naming: get -> ensure

Use the term `***_ensure()` for functions which do a lookup and add the data if its not there,
keep `***_get()` for fast access functions which just return the data if its available.

Otherwise its easy to accidentally add by what looks like reading/checking for the data's existance.

Commit Details:

Full Hash: 0a93fd769c5d7778e2b6dbfd1c147a86c6b42f01
Parent Commit: 5e72724
Lines Changed: +19, -19

9 Modified Paths:

/source/blender/blenkernel/BKE_icons.h (+2, -2) (Diff)
/source/blender/blenkernel/intern/icons.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/image.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_icons.c (+2, -2) (Diff)
/source/blender/editors/render/render_preview.c (+1, -1) (Diff)
/source/blender/editors/render/render_update.c (+8, -8) (Diff)
/source/blender/editors/space_image/image_ops.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021