X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgeometry%2Fcompositeshape.h;h=0f1dd437c99eee065de8d9720f05ce2573d1a90b;hb=7d43d93ac2d701bb3de87cdf81e44c03e64c35c3;hp=0c2c838ec7d13364e6408872cc8dfad113ce5914;hpb=4fc002747e8138501d08942be247e60cd99ac404;p=libs%2Fmath.git diff --git a/source/geometry/compositeshape.h b/source/geometry/compositeshape.h index 0c2c838..0f1dd43 100644 --- a/source/geometry/compositeshape.h +++ b/source/geometry/compositeshape.h @@ -179,6 +179,9 @@ inline unsigned CompositeShape::get_intersections(const Ray &ray, return 0; n = k; + + if(i!=shapes.begin()) + start_nesting = (start_nesting>!Ops::shortcircuit(false)); } if(buffer!=points)