cleaned up and fleshed out geom.h/geom.cc and preparing to add bounding
[laserbrain_demo] / src / objmesh.cc
index 60fa7f9..ab741f4 100644 (file)
@@ -27,6 +27,12 @@ void ObjMesh::draw() const
        mesh->draw();
 
        if(node) {
+               glMatrixMode(GL_MODELVIEW);
                glPopMatrix();
        }
 }
+
+const AABox &ObjMesh::get_aabox() const
+{
+       return mesh ? mesh->get_aabbox() : Object::get_aabox();
+}