mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
soft2egg assumes vertices start counting at 1
This commit is contained in:
parent
22aced1531
commit
e7a79098b6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user