[Bf-blender-cvs] [91373a5] bake-cycles: Cycles-Bake: Fix for padding (margin) not working in tangent maps

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


Commit: 91373a5610bfd75725333996147d2a9591be6295
Author: Dalai Felinto
Date:   Mon Mar 17 22:44:01 2014 -0300
https://developer.blender.org/rB91373a5610bfd75725333996147d2a9591be6295

Cycles-Bake: Fix for padding (margin) not working in tangent maps

Note: you cannot save png without alpha for now, Im working on that in a separate branch

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

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 5a7ef68..b20bb5c 100644
--- a/source/blender/render/intern/source/bake_new.c
+++ b/source/blender/render/intern/source/bake_new.c
@@ -400,8 +400,10 @@ void RE_populate_bake_pixels_from_object(Mesh *me_low, Mesh *me_high,
 
 		primitive_id = pixel_array_from[i].primitive_id;
 
-		if (primitive_id == -1)
+		if (primitive_id == -1) {
+			pixel_array_to[i].primitive_id = -1;
 			continue;
+		}
 
 		u = pixel_array_from[i].u;
 		v = pixel_array_from[i].v;




More information about the Bf-blender-cvs mailing list