Move tool finally has "Copy Air" option.
This commit is contained in:
parent
a6d754a2c4
commit
c5e2b121d8
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user