diff --git a/src/mcedit2/editortools/move.py b/src/mcedit2/editortools/move.py index 52c80b5..dd26ab3 100644 --- a/src/mcedit2/editortools/move.py +++ b/src/mcedit2/editortools/move.py @@ -329,15 +329,20 @@ class MoveTool(EditorTool): self.rotationInput = RotationWidget() self.rotationInput.rotationChanged.connect(self.rotationChanged) + self.copyOptionsWidget = QtGui.QGroupBox(self.tr("Options")) + + self.copyAirCheckbox = QtGui.QCheckBox(self.tr("Copy Air")) + self.copyOptionsWidget.setLayout(Column(self.copyAirCheckbox)) + confirmButton = QtGui.QPushButton("Confirm") # xxxx should be in worldview confirmButton.clicked.connect(self.confirmImport) self.toolWidget.setLayout(Column(self.importsListWidget, self.pointInput, self.rotationInput, + self.copyOptionsWidget, confirmButton, None)) - def rotationChanged(self, rots, live): if self.currentImport: if live: @@ -492,7 +497,8 @@ class MoveTool(EditorTool): # Copy to destination task = destDim.copyBlocksIter(sourceDim, sourceDim.bounds, self.currentImport.importPos, - biomes=True, create=True) + biomes=True, create=True, + copyAir=self.copyAirCheckbox.isChecked()) showProgress(self.tr("Pasting..."), task)