X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fobjmesh.cc;h=ab741f43dbfe464ca6e094848bca0dd0a3a392c6;hp=3076e6740c5ddd65fbb376eb77f0ab4cd1d496c7;hb=ca5d732eb2b76da1e01428193effeb205ae951e9;hpb=2d2c46ef8cf99be431553993fe9d4a8e12281c7d diff --git a/src/objmesh.cc b/src/objmesh.cc index 3076e67..ab741f4 100644 --- a/src/objmesh.cc +++ b/src/objmesh.cc @@ -31,3 +31,8 @@ void ObjMesh::draw() const glPopMatrix(); } } + +const AABox &ObjMesh::get_aabox() const +{ + return mesh ? mesh->get_aabbox() : Object::get_aabox(); +}