Skip to content

Commit

Permalink
fix FS#1340 - Modify > Trim: Cannot trim to entities in block reference
Browse files Browse the repository at this point in the history
  • Loading branch information
qcad committed Dec 29, 2015
1 parent 35ec5ad commit dbd04cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/Modify/Trim/Trim.js
Expand Up @@ -298,6 +298,12 @@ Trim.trim = function(op, limitingEntity, limitingClickPos, trimEntity, trimClick
}

var limitingShape = limitingEntity.castToShape();
if (isNull(limitingShape)) {
limitingShape = limitingEntity.getClosestSimpleShape(limitingClickPos);
if (!isNull(limitingShape)) {
limitingShape = limitingShape.data();
}
}
if (isNull(limitingShape)) {
return false;
}
Expand Down

0 comments on commit dbd04cd

Please sign in to comment.