[Bf-blender-cvs] [a86b16f] bake-cycles: Cycles-Bake: Fix Linux build error

Dalai Felinto noreply at git.blender.org
Wed Apr 23 02:47:20 CEST 2014


Commit: a86b16f37d06ffb8c81c4a037457358e3dccc324
Author: Dalai Felinto
Date:   Mon Feb 24 19:25:32 2014 -0300
https://developer.blender.org/rBa86b16f37d06ffb8c81c4a037457358e3dccc324

Cycles-Bake: Fix Linux build error

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

M	source/blender/render/intern/source/bake_new.c

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

diff --git a/source/blender/render/intern/source/bake_new.c b/source/blender/render/intern/source/bake_new.c
index 87bc533..5a7ef68 100644
--- a/source/blender/render/intern/source/bake_new.c
+++ b/source/blender/render/intern/source/bake_new.c
@@ -488,7 +488,8 @@ void RE_populate_bake_pixels(Mesh *me, BakePixel pixel_array[], const int width,
  */
 static void normal_uncompress(float *out, float in[3])
 {
-	for (int i=0; i < 3; i++)
+	int i;
+	for (i = 0; i < 3; i++)
 		out[i] = - (2.0f * in[i] - 1.0f);
 }
 
@@ -503,7 +504,9 @@ static void normal_compress(float *out, float in[3], int normal_swizzle[3]) {
 		{ -1, 2, }, // OB_NEGZ
 	};
 
-	for (int i=0; i < 3; i++) {
+	int i;
+
+	for (i = 0; i < 3; i++) {
 		int id, sign;
 
 		sign = swizzle[normal_swizzle[i]][0];




More information about the Bf-blender-cvs mailing list