Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-08-14 16:29:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-14 16:32:24 +0300
commit03b2371387dcae9f801cabbc1819b1d7e3350829 (patch)
tree0300655f20a06a8e5c807b5fe6263b47c686dedb /source/blender/blenkernel/intern/main.c
parentbc4fe45aef7e52f9e7a2bd5e370c6791c58af832 (diff)
Cleanup: move trailing comments to avoid wrapping code
Some statements were split across multiple lines because of their trailing comments. In most cases it's clearer to put the comments above.
Diffstat (limited to 'source/blender/blenkernel/intern/main.c')
-rw-r--r--source/blender/blenkernel/intern/main.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/main.c b/source/blender/blenkernel/intern/main.c
index 170b8d0ab93..8e2c3a11ac0 100644
--- a/source/blender/blenkernel/intern/main.c
+++ b/source/blender/blenkernel/intern/main.c
@@ -485,16 +485,23 @@ int set_listbasepointers(Main *bmain, ListBase **lb)
/* BACKWARDS! also watch order of free-ing! (mesh<->mat), first items freed last.
* This is important because freeing data decreases user-counts of other data-blocks,
* if this data is its self freed it can crash. */
- lb[INDEX_ID_LI] = &(
- bmain->libraries); /* Libraries may be accessed from pretty much any other ID... */
+
+ /* Libraries may be accessed from pretty much any other ID. */
+ lb[INDEX_ID_LI] = &(bmain->libraries);
+
lb[INDEX_ID_IP] = &(bmain->ipo);
- lb[INDEX_ID_AC] = &(
- bmain->actions); /* moved here to avoid problems when freeing with animato (aligorith) */
+
+ /* Moved here to avoid problems when freeing with animato (aligorith). */
+ lb[INDEX_ID_AC] = &(bmain->actions);
+
lb[INDEX_ID_KE] = &(bmain->shapekeys);
- lb[INDEX_ID_PAL] = &(
- bmain->palettes); /* referenced by gpencil, so needs to be before that to avoid crashes */
- lb[INDEX_ID_GD] = &(
- bmain->gpencils); /* referenced by nodes, objects, view, scene etc, before to free after. */
+
+ /* Referenced by gpencil, so needs to be before that to avoid crashes. */
+ lb[INDEX_ID_PAL] = &(bmain->palettes);
+
+ /* Referenced by nodes, objects, view, scene etc, before to free after. */
+ lb[INDEX_ID_GD] = &(bmain->gpencils);
+
lb[INDEX_ID_NT] = &(bmain->nodetrees);
lb[INDEX_ID_IM] = &(bmain->images);
lb[INDEX_ID_TE] = &(bmain->textures);
@@ -502,8 +509,7 @@ int set_listbasepointers(Main *bmain, ListBase **lb)
lb[INDEX_ID_VF] = &(bmain->fonts);
/* Important!: When adding a new object type,
- * the specific data should be inserted here
- */
+ * the specific data should be inserted here. */
lb[INDEX_ID_AR] = &(bmain->armatures);