[Bf-blender-cvs] [ddf5ef0] master: correction from last commit

Dalai Felinto noreply at git.blender.org
Wed Jun 11 02:38:28 CEST 2014


Commit: ddf5ef04016a5a7e61a323771a631d9c5cb607db
Author: Dalai Felinto
Date:   Tue Jun 10 21:36:48 2014 -0300
https://developer.blender.org/rBddf5ef04016a5a7e61a323771a631d9c5cb607db

correction from last commit

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

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 cd40262..534ecd5 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -302,7 +302,7 @@ static bool bake_object_check(Object *ob, ReportList *reports)
 	else {
 		Mesh *me = (Mesh *)ob->data;
 
-		if (CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV)) {
+		if (CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV) == -1) {
 			BKE_reportf(reports, RPT_ERROR,
 			            "No active UV layer found in the object \"%s\"", ob->id.name + 2);
 			return false;




More information about the Bf-blender-cvs mailing list