projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added readme file
[laserbrain_demo]
/
src
/
objmesh.cc
diff --git
a/src/objmesh.cc
b/src/objmesh.cc
index
60fa7f9
..
ab741f4
100644
(file)
--- a/
src/objmesh.cc
+++ b/
src/objmesh.cc
@@
-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();
+}