end foo
This commit is contained in:
parent
e1a41a526d
commit
3a07155756
4 changed files with 11 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "polygon_model.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <ostream>
|
||||
|
||||
namespace endofthejedi {
|
||||
PolygonModel::PolygonModel(const std::string &filename)
|
||||
|
|
@ -99,9 +100,7 @@ namespace endofthejedi {
|
|||
return false;
|
||||
}
|
||||
|
||||
aiNode *node = scene->mRootNode;
|
||||
const aiMesh* mesh = scene->mMeshes[node->mMeshes[0]];
|
||||
|
||||
const aiMesh* mesh = scene->mMeshes[0];
|
||||
// 3 vertices per face, 3 floats per vertex
|
||||
m_numVertices = mesh->mNumFaces*3;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue