Browse Source

soft2egg assumes vertices start counting at 1

David Rose 20 years ago
parent
commit
e7a79098b6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pandatool/src/softegg/softToEggConverter.cxx

+ 2 - 0
pandatool/src/softegg/softToEggConverter.cxx

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