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

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)
if (tmp == "curv")
{
nextLine = true;
dataType = DATA_BSPLINE_CURVE;
dataType = typeId("BSplineCurve");
typeFound = true;
}
else if (tmp == "surf")
{
nextLine = true;
dataType = DATA_BSPLINE_SURFACE;
dataType = typeId("BSplineSurface");
typeFound = true;
}
}
......@@ -257,9 +257,9 @@ void Core::preprocessObjFile(QString _filename)
std::cout << _filename.toStdString() << " is of type DATA_POLY_MESH" << std::endl;
else if (dataType == DATA_TRIANGLE_MESH)
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;
else if (dataType == DATA_BSPLINE_SURFACE)
else if (dataType == typeId("BSplineSurface"))
std::cout << _filename.toStdString() << " is of type DATA_BSPLINE_SURFACE" << std::endl;
else
std::cout << "no data type found " << std::endl;
......
Markdown is supported
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