Commit 3770f65d authored by Ellen Dekkers's avatar Ellen Dekkers
Browse files

Problems with BSplineSurface data type fixed

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6836 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9d53fb4a
...@@ -230,13 +230,13 @@ void Core::preprocessObjFile(QString _filename) ...@@ -230,13 +230,13 @@ void Core::preprocessObjFile(QString _filename)
if (tmp == "curv") if (tmp == "curv")
{ {
nextLine = true; nextLine = true;
dataType = DATA_BSPLINE_CURVE; dataType = typeId("BSplineCurve");
typeFound = true; typeFound = true;
} }
else if (tmp == "surf") else if (tmp == "surf")
{ {
nextLine = true; nextLine = true;
dataType = DATA_BSPLINE_SURFACE; dataType = typeId("BSplineSurface");
typeFound = true; typeFound = true;
} }
} }
...@@ -257,9 +257,9 @@ void Core::preprocessObjFile(QString _filename) ...@@ -257,9 +257,9 @@ void Core::preprocessObjFile(QString _filename)
std::cout << _filename.toStdString() << " is of type DATA_POLY_MESH" << std::endl; std::cout << _filename.toStdString() << " is of type DATA_POLY_MESH" << std::endl;
else if (dataType == DATA_TRIANGLE_MESH) else if (dataType == DATA_TRIANGLE_MESH)
std::cout << _filename.toStdString() << " is of type DATA_TRIANGLE_MESH" << std::endl; std::cout << _filename.toStdString() << " is of type DATA_TRIANGLE_MESH" << std::endl;
else if (dataType == DATA_BSPLINE_CURVE) else if (dataType == typeId("BSplineCurve"))
std::cout << _filename.toStdString() << " is of type DATA_BSPLINE_CURVE" << std::endl; std::cout << _filename.toStdString() << " is of type DATA_BSPLINE_CURVE" << std::endl;
else if (dataType == DATA_BSPLINE_SURFACE) else if (dataType == typeId("BSplineSurface"))
std::cout << _filename.toStdString() << " is of type DATA_BSPLINE_SURFACE" << std::endl; std::cout << _filename.toStdString() << " is of type DATA_BSPLINE_SURFACE" << std::endl;
else else
std::cout << "no data type found " << std::endl; std::cout << "no data type found " << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment