fixed botched merge

This commit is contained in:
arvid schröder 2022-11-25 15:09:05 +01:00
parent d077b8981c
commit d00599ced6

View file

@ -204,20 +204,6 @@ std::vector<std::shared_ptr<Primitive>> Scene::loadObj(char const *fileName, Vec
std::cout << " -> " << vtData.size() << " uv-positions parsed" << std::endl;
std::cout << " -> " << faces.size() << " primitives parsed" << std::endl;
faces.push_back(std::make_shared<Triangle>(vertices[x - 1] * scale + translation,
vertices[y - 1] * scale + translation,
vertices[z - 1] * scale + translation,
vertex_normals[xn - 1], vertex_normals[yn - 1],
vertex_normals[zn - 1],
shader));
} else if (key == "#") {
file.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
} else {
file.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
}
}
file.close();
}
return faces;
}