X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fmesh.cpp;fp=source%2Fcore%2Fmesh.cpp;h=3a79f3e53193c0c1c63cb32bde351926c2cb4a63;hp=dba8a9915489aede7906f8a684b9d59e288428b5;hb=ea7832c7c1ffab00cc1168bc8c41375fdd0eae86;hpb=7f03ee52e8af5f857e44702b6d1c2822a51c62ef diff --git a/source/core/mesh.cpp b/source/core/mesh.cpp index dba8a991..3a79f3e5 100644 --- a/source/core/mesh.cpp +++ b/source/core/mesh.cpp @@ -218,13 +218,13 @@ Mesh::Loader::Loader(Mesh &m, bool g): add("winding", &Loader::winding); } -void Mesh::Loader::vertices(const vector &c) +void Mesh::Loader::vertices(const vector &a) { - if(c.empty()) - throw invalid_argument("No vertex components"); + if(a.empty()) + throw invalid_argument("No vertex attributes"); VertexFormat fmt; - for(vector::const_iterator i=c.begin(); i!=c.end(); ++i) + for(vector::const_iterator i=a.begin(); i!=a.end(); ++i) fmt = (fmt, *i); obj.vertices.reset(fmt); load_sub(obj.vertices);