Skip to content
Snippets Groups Projects
Commit da5a47cc authored by Mark Moll's avatar Mark Moll
Browse files

don't compute AABBs if cgeom is a NULL pointer

parent 613b0601
No related branches found
No related tags found
No related merge requests found
......@@ -153,8 +153,11 @@ public:
CollisionObject(const boost::shared_ptr<CollisionGeometry> &cgeom_) :
cgeom(cgeom_), cgeom_const(cgeom_)
{
cgeom->computeLocalAABB();
computeAABB();
if (cgeom)
{
cgeom->computeLocalAABB();
computeAABB();
}
}
CollisionObject(const boost::shared_ptr<CollisionGeometry> &cgeom_, const Transform3f& tf) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment