[Bf-blender-cvs] [12c69b5] bake-cycles: Cycles-Bake: remove pseudo-code

Dalai Felinto noreply at git.blender.org
Wed Apr 23 02:48:05 CEST 2014


Commit: 12c69b5300308dbec1538ca86b4e16237342f8c9
Author: Dalai Felinto
Date:   Thu Apr 10 19:21:11 2014 -0300
https://developer.blender.org/rB12c69b5300308dbec1538ca86b4e16237342f8c9

Cycles-Bake: remove pseudo-code

===================================================================

M	source/blender/editors/object/object_bake_api.c

===================================================================

diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 1989a06..5a8628a 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -280,38 +280,6 @@ static int bake_exec(bContext *C, wmOperator *op)
 	pixel_array_low = MEM_callocN(sizeof(BakePixel) * num_pixels, "bake pixels low poly");
 	result = MEM_callocN(sizeof(float) * depth * num_pixels, "bake return pixels");
 
-#if 0
-	/* PSEUDO-CODE TIME
-	 *
-	 * for now ignore the 'bakemap' references below
-	 * this is just to help thinking how this will fit
-	 * in the overall design and future changes
-	 * for the current bake structure just consider
-	 * that there is one bakemap made with the current
-	 * render selected options */
-
-	for object in selected_objects:
-		BakePixels *pixel_array[];
-
-		/* doing this at this point means a bakemap won't have
-		 * a unique UVMap, which may be fine */
-
-		populate_bake_pixels(object, pixel_array);
-
-		for bakemap in object.bakemaps:
-			float *ret[]
-
-			extern_bake(object, pixel_array, len(bp), bakemap.type, ret);
-
-			if bakemap.save_external:
-				write_image(bakemap.filepath, ret);
-
-			elif bakemap.save_internal:
-				bakemap.image(bakemap.image, ret);
-
-			elif ... (vertex color?)
-#endif
-
 	is_cage = ob_high && (ob_high->type == OB_MESH);
 	is_tangent = pass_type == SCE_PASS_NORMAL && normal_space == R_BAKE_SPACE_TANGENT;




More information about the Bf-blender-cvs mailing list