Merge pull request #416 from Qveshn/fix/paste-double-transformation

Fix entities double transformation copy-rotate-paste and stack
Dieser Commit ist enthalten in:
Matthew Miller 2018-05-27 16:49:32 +10:00 committet von GitHub
Commit 6e22a8a4f0
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -243,6 +243,8 @@ public class ForwardExtentCopy implements Operation {
if (currentTransform == null) { if (currentTransform == null) {
currentTransform = transform; currentTransform = transform;
} else {
currentTransform = currentTransform.combine(transform);
} }
ExtentBlockCopy blockCopy = new ExtentBlockCopy(source, from, destination, to, currentTransform); ExtentBlockCopy blockCopy = new ExtentBlockCopy(source, from, destination, to, currentTransform);
@ -251,7 +253,6 @@ public class ForwardExtentCopy implements Operation {
RegionVisitor blockVisitor = new RegionVisitor(region, function); RegionVisitor blockVisitor = new RegionVisitor(region, function);
lastVisitor = blockVisitor; lastVisitor = blockVisitor;
currentTransform = currentTransform.combine(transform);
if (copyingEntities) { if (copyingEntities) {
ExtentEntityCopy entityCopy = new ExtentEntityCopy(from, destination, to, currentTransform); ExtentEntityCopy entityCopy = new ExtentEntityCopy(from, destination, to, currentTransform);