X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobject.cpp;h=d48b0843fb9f3b73591588631429ce09e2709a8c;hb=8dbd6316d277d2f9cbf85e7e61f2541421e01292;hp=9aba5466e3e1cf548674b61f2a4b70f156eb8a93;hpb=e720536d5feacf6136b5621c98b72d206e44f64c;p=libs%2Fgl.git diff --git a/source/object.cpp b/source/object.cpp index 9aba5466..d48b0843 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -62,6 +62,9 @@ void Object::update_bounding_sphere() vector points; for(vector >::const_iterator i=meshes.begin(); i!=meshes.end(); ++i) { + if(!*i) + continue; + const VertexArray &vertices = (*i)->get_vertices(); int offset = vertices.get_format().offset(VERTEX3);