Fix for bug #11650: removing uv layers in editmode did not work correct.
[blender.git] / source / blender / render / intern / source / renderdatabase.c
index 441aa9336be67e86c1eeaf319c3d6cada9f2761b..98b1426e8ff2a6b41c3aba19295ff0818b95575e 100644 (file)
@@ -501,6 +501,7 @@ void RE_set_customdata_names(ObjectRen *obr, CustomData *data)
                if (layer->type == CD_MTFACE) {
                        strcpy(obr->mtface[mtfn++], layer->name);
                        obr->actmtface= layer->active_rnd;
                if (layer->type == CD_MTFACE) {
                        strcpy(obr->mtface[mtfn++], layer->name);
                        obr->actmtface= layer->active_rnd;
+                       obr->bakemtface= layer->active;
                }
                else if (layer->type == CD_MCOL) {
                        strcpy(obr->mcol[mcn++], layer->name);
                }
                else if (layer->type == CD_MCOL) {
                        strcpy(obr->mcol[mcn++], layer->name);