summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
674a53a)
struct Layer_Shape::Intersector
{
Rect aabb;
struct Layer_Shape::Intersector
{
Rect aabb;
+
+ //! true iff aabb hasn't been initialised yet
bool initaabb;
int flags;
bool initaabb;
int flags;
if(invert)
return Rect::full_plane();
if(invert)
return Rect::full_plane();
- Rect bounds(edge_table->aabb+offset);
- bounds.expand(max((bounds.get_min()-bounds.get_max()).mag()*0.01,feather));
+ if (edge_table->initaabb)
+ return Rect::zero();
+ Rect bounds(edge_table->aabb+offset);
+ bounds.expand(max((bounds.get_min() - bounds.get_max()).mag()*0.01,
+ feather));