Small fix - now import per-face materials should work properly.

This commit is contained in:
Chingiz Dyussenov
2009-07-03 07:54:55 +00:00
parent 9cc690b0d1
commit 861a0d20c6
2 changed files with 3 additions and 2 deletions

View File

@@ -548,7 +548,7 @@ public:
node.start();
node.addTranslate(ob->loc[0], ob->loc[1], ob->loc[2]);
// when animation time comes, replace a single <rotate> with 3, one for each axis
float quat[4];
float axis[3];
@@ -575,7 +575,7 @@ public:
COLLADASW::InstanceMaterial im(matid, COLLADASW::URI
(COLLADABU::Utils::EMPTY_STRING,
matid));
// create <bind_vertex_input> for each uv layer
Mesh *me = (Mesh*)ob->data;
int totlayer = CustomData_number_of_layers(&me->fdata, CD_MTFACE);

View File

@@ -360,6 +360,7 @@ public:
int l = 0;
while (l++ < prim.totface) {
prim.mface->mat_nr = k;
prim.mface++;
}
}
}