Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2014-06-11 04:36:48 +0400
committerDalai Felinto <dfelinto@gmail.com>2014-06-11 04:36:48 +0400
commitddf5ef04016a5a7e61a323771a631d9c5cb607db (patch)
tree23b71932f9e42252128c2a2cb6eb21623b4e6189 /source/blender/editors/object/object_bake_api.c
parent8a90edca86d525b7114cd95198a171cbef2f158b (diff)
correction from last commit
Diffstat (limited to 'source/blender/editors/object/object_bake_api.c')
-rw-r--r--source/blender/editors/object/object_bake_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index cd40262fe6b..534ecd5a109 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;