Skip to content

Commit

Permalink
FS#2080 - Modify > Stretch: Hatch moves instead of stretching
Browse files Browse the repository at this point in the history
  • Loading branch information
qcad committed May 27, 2020
1 parent b57fe3e commit 10e0078
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/Modify/Stretch/Stretch.js
Expand Up @@ -260,6 +260,13 @@ Stretch.getStrechOperation = function(document, polygon, preview, offset, layerI
gotIntersection = true;
}

// hatch entities might be partially inside stretch area but not
// intersect with stretch area as pattern might not intersect even
// if boundary intersects or pattern might only contain points:
if (isHatchEntity(entity)) {
gotIntersection = true;
}

if (gotIntersection) {
// stretch:
if (entity.stretch(polygon, offset)) {
Expand Down

0 comments on commit 10e0078

Please sign in to comment.