mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
made a mistake on the earlier bug fix
This commit is contained in:
parent
34c98d8910
commit
5cb33c4b2e
@ -1156,9 +1156,10 @@ make_polyset(SoftNodeDesc *node_desc, EggGroup *egg_group, SAA_ModelType type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if texture present set the texture coordinates
|
// if texture present set the texture coordinates
|
||||||
if (node_desc->textures && node_desc->numTexTri[idx]) {
|
if (node_desc->textures) {
|
||||||
float u, v;
|
float u, v;
|
||||||
|
|
||||||
|
if (uCoords && vCoords) {
|
||||||
u = uCoords[i];
|
u = uCoords[i];
|
||||||
v = 1.0f - vCoords[i];
|
v = 1.0f - vCoords[i];
|
||||||
softegg_cat.spam() << "texcoords[" << i << "] = " << u << " "
|
softegg_cat.spam() << "texcoords[" << i << "] = " << u << " "
|
||||||
@ -1167,6 +1168,7 @@ make_polyset(SoftNodeDesc *node_desc, EggGroup *egg_group, SAA_ModelType type) {
|
|||||||
vert.set_uv(TexCoordd(u, v));
|
vert.set_uv(TexCoordd(u, v));
|
||||||
// vert.set_uv(TexCoordd(uCoords[i], vCoords[i]));
|
// vert.set_uv(TexCoordd(uCoords[i], vCoords[i]));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
vert.set_external_index(indices[i]);
|
vert.set_external_index(indices[i]);
|
||||||
egg_poly->add_vertex(vpool->create_unique_vertex(vert));
|
egg_poly->add_vertex(vpool->create_unique_vertex(vert));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user