Move tool finally has "Copy Air" option.

This commit is contained in:
David Vierra 2015-10-04 00:32:02 -10:00
parent a6d754a2c4
commit c5e2b121d8

View File

@ -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)