def deleteEntities(self):
     command = SimpleRevisionCommand(self, "Delete Entities")
     with command.begin():
         entitiesTask = RemoveEntitiesOperation(self.currentDimension,
                                                self.currentSelection)
         showProgress("Deleting...", entitiesTask)
     self.pushCommand(command)
Beispiel #2
0
 def deleteSelection(self):
     command = SimpleRevisionCommand(self, "Delete")
     with command.begin():
         fillTask = self.currentDimension.fillBlocksIter(self.currentSelection, "air")
         entitiesTask = RemoveEntitiesOperation(self.currentDimension, self.currentSelection)
         task = ComposeOperations(fillTask, entitiesTask)
         showProgress("Deleting...", task)
     self.pushCommand(command)