Fix cut
This commit is contained in:
parent
a5d70a65aa
commit
65939fa878
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user