update main() to use new ConvertToMeshFile function

This commit is contained in:
gered 2012-12-11 11:10:36 -05:00
parent 15fed2c5c3
commit 2d3fdc98df

View file

@ -2,6 +2,7 @@
#include <string> #include <string>
#include <exception> #include <exception>
#include "meshfile.h"
#include "ms3d/ms3d.h" #include "ms3d/ms3d.h"
int main(int argc, char **argv) int main(int argc, char **argv)
@ -73,7 +74,7 @@ int main(int argc, char **argv)
printf("Error loading MS3D file.\n\n"); printf("Error loading MS3D file.\n\n");
return 1; return 1;
} }
if (!ms3d->ConvertToMesh(meshFile, scaleFactor)) if (!ConvertToMeshFile(meshFile, ms3d, scaleFactor))
{ {
printf("Error converting MS3D to MESH.\n\n"); printf("Error converting MS3D to MESH.\n\n");
return 1; return 1;