This commit is contained in:
Jesse Boyd 2018-03-16 17:20:27 +11:00
parent a5d70a65aa
commit 65939fa878
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 1 additions and 2 deletions

View File

@ -272,7 +272,6 @@ public class ForwardExtentCopy implements Operation {
Operation blockCopy = null; Operation blockCopy = null;
PositionTransformExtent transExt = null; PositionTransformExtent transExt = null;
if (!currentTransform.isIdentity()) { if (!currentTransform.isIdentity()) {
System.out.println("Has translation");
if (!(currentTransform instanceof AffineTransform) || ((AffineTransform) currentTransform).isOffAxis()) { if (!(currentTransform instanceof AffineTransform) || ((AffineTransform) currentTransform).isOffAxis()) {
transExt = new PositionTransformExtent(source, currentTransform.inverse()); transExt = new PositionTransformExtent(source, currentTransform.inverse());
transExt.setOrigin(from); transExt.setOrigin(from);
@ -307,7 +306,7 @@ public class ForwardExtentCopy implements Operation {
boolean overlap = (disAbs.getBlockX() < size.getBlockX() && disAbs.getBlockY() < size.getBlockY() && disAbs.getBlockZ() < size.getBlockZ()); boolean overlap = (disAbs.getBlockX() < size.getBlockX() && disAbs.getBlockY() < size.getBlockY() && disAbs.getBlockZ() < size.getBlockZ());
RegionFunction copySrcFunc = sourceFunction; RegionFunction copySrcFunc = sourceFunction;
if (overlap) { if (overlap && translation.length() != 0) {
MutableBlockVector mutable = new MutableBlockVector(); MutableBlockVector mutable = new MutableBlockVector();
int x = translation.getBlockX(); int x = translation.getBlockX();