Cleanup: Comments
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Nov 2018 15:28:07 +0000 (16:28 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Nov 2018 15:28:07 +0000 (16:28 +0100)
source/blender/blenkernel/intern/lamp.c
source/blender/blenkernel/intern/material.c
source/blender/blenkernel/intern/texture.c
source/blender/blenkernel/intern/world.c

index 23cd81b6da9655f12ea44d2c516f2d4ca424212c..84a8e11bdc81056454a31b4a21062381b75a8811 100644 (file)
@@ -157,12 +157,15 @@ Lamp *BKE_lamp_copy(Main *bmain, const Lamp *la)
 
 Lamp *BKE_lamp_localize(Lamp *la)
 {
-       /* TODO replace with something like
-        * Lamp *la_copy;
-        * BKE_id_copy_ex(bmain, &la->id, (ID **)&la_copy, LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT, false);
-        * return la_copy;
+       /* TODO(bastien): Replace with something like:
         *
-        * ... Once f*** nodes are fully converted to that too :( */
+        *   Lamp *la_copy;
+        *   BKE_id_copy_ex(bmain, &la->id, (ID **)&la_copy,
+        *                  LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT,
+        *                  false);
+        *   return la_copy;
+        *
+        * NOTE: Only possible once nested node trees are fully converted to that too. */
 
        Lamp *lan;
        int a;
index 376e819268d1e878581a704b1fb1b610677da574..3414d08b8e7bb7b1598de1f7c43db2b8e08e07f9 100644 (file)
@@ -273,12 +273,15 @@ Material *BKE_material_copy(Main *bmain, const Material *ma)
 /* XXX (see above) material copy without adding to main dbase */
 Material *BKE_material_localize(Material *ma)
 {
-       /* TODO replace with something like
-        * Material *ma_copy;
-        * BKE_id_copy_ex(bmain, &ma->id, (ID **)&ma_copy, LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT, false);
-        * return ma_copy;
+       /* TODO(bastien): Replace with something like:
         *
-        * ... Once f*** nodes are fully converted to that too :( */
+        *   Material *ma_copy;
+        *   BKE_id_copy_ex(bmain, &ma->id, (ID **)&ma_copy,
+        *                  LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT,
+        *                  false);
+        *   return ma_copy;
+        *
+        * NOTE: Only possible once nested node trees are fully converted to that too. */
 
        Material *man;
        int a;
index 1637c0c8054cf102e43afa3c6399813dbcfb7830..bd6199d91b4cf36e11e71edfa29e6a81a615c71c 100644 (file)
@@ -548,12 +548,15 @@ Tex *BKE_texture_copy(Main *bmain, const Tex *tex)
 /* texture copy without adding to main dbase */
 Tex *BKE_texture_localize(Tex *tex)
 {
-       /* TODO replace with something like
-        * Tex *tex_copy;
-        * BKE_id_copy_ex(bmain, &tex->id, (ID **)&tex_copy, LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT, false);
-        * return tex_copy;
+       /* TODO(bastien): Replace with something like:
         *
-        * ... Once f*** nodes are fully converted to that too :( */
+        *   Tex *tex_copy;
+        *   BKE_id_copy_ex(bmain, &tex->id, (ID **)&tex_copy,
+        *                  LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT,
+        *                  false);
+        *   return tex_copy;
+        *
+        * NOTE: Only possible once nested node trees are fully converted to that too. */
 
        Tex *texn;
 
index cb3ef82ed62143a4f3636f4ba02a62296f93e485..a44d717bbdd5cab2218eebe2761346a8560662a1 100644 (file)
@@ -159,12 +159,15 @@ World *BKE_world_copy(Main *bmain, const World *wrld)
 
 World *BKE_world_localize(World *wrld)
 {
-       /* TODO replace with something like
-        * World *wrld_copy;
-        * BKE_id_copy_ex(bmain, &wrld->id, (ID **)&wrld_copy, LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT, false);
-        * return wrld_copy;
+       /* TODO(bastien): Replace with something like:
         *
-        * ... Once f*** nodes are fully converted to that too :( */
+        *   World *wrld_copy;
+        *   BKE_id_copy_ex(bmain, &wrld->id, (ID **)&wrld_copy,
+        *                  LIB_ID_COPY_NO_MAIN | LIB_ID_COPY_NO_PREVIEW | LIB_ID_COPY_NO_USER_REFCOUNT,
+        *                  false);
+        *   return wrld_copy;
+        *
+        * NOTE: Only possible once nested node trees are fully converted to that too. */
 
        World *wrldn;
        int a;