Extrude properly sorts returned intersections
git-svn-id: svn://anubis/fart/trunk@275 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
9bed134733
commit
cb4c84ee66
@ -90,9 +90,7 @@ Shape::IntersectionList Extrude::intersect(refptr<Shape> _this, const Ray & ray)
|
||||
}
|
||||
}
|
||||
|
||||
vector<Intersection> m;
|
||||
|
||||
sort(m.begin(), m.end(), IntersectListComparator(ray.getOrigin()));
|
||||
sort(res.begin(), res.end(), IntersectListComparator(ray.getOrigin()));
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user