soft2egg assumes vertices start counting at 1

This commit is contained in:
David Rose 2005-04-20 22:48:11 +00:00
parent 22aced1531
commit e7a79098b6

View File

@ -1042,6 +1042,7 @@ make_polyset(SoftNodeDesc *node_desc, EggGroup *egg_group, SAA_ModelType type) {
string vpool_name = name + ".verts";
EggVertexPool *vpool = new EggVertexPool(vpool_name);
vpool->set_highest_index(0);
// add the vertices in the _tree._root node, so that
// they will be written out first in egg file. This
@ -1272,6 +1273,7 @@ make_nurb_surface(SoftNodeDesc *node_desc, EggGroup *egg_group, SAA_ModelType ty
string vpool_name = name + ".verts";
EggVertexPool *vpool = new EggVertexPool(vpool_name);
vpool->set_highest_index(0);
// add the vertices in the _tree._egg_root node, so that
// they will be written out first in egg file. This