[Bf-blender-cvs] [1ef5669] master: Fixup for fd0b7428 Bake-API: allow custom UV to be baked

Dalai Felinto noreply at git.blender.org
Thu Jun 19 00:04:23 CEST 2014


Commit: 1ef5669ad774ac98fff7359132f08c2f7c923643
Author: Dalai Felinto
Date:   Wed Jun 18 18:43:58 2014 -0300
https://developer.blender.org/rB1ef5669ad774ac98fff7359132f08c2f7c923643

Fixup for fd0b7428 Bake-API: allow custom UV to be baked

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

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

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

diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c
index 28cb916..efa8c9b 100644
--- a/source/blender/render/intern/source/bake_api.c
+++ b/source/blender/render/intern/source/bake_api.c
@@ -619,7 +619,7 @@ void RE_bake_pixels_populate(
 		zbuf_alloc_span(&bd.zspan[i], bake_images->data[i].width, bake_images->data[i].height, R.clipcrop);
 	}
 
-	if (uv_layer == NULL) {
+	if ((uv_layer == NULL) || (uv_layer[0] == '\0')) {
 		mtface = CustomData_get_layer(&me->fdata, CD_MTFACE);
 	}
 	else {




More information about the Bf-blender-cvs mailing list