Resizing selection box only triggers immediate chunk loads when mouse button is released.

This commit is contained in:
David Vierra 2015-10-01 22:30:20 -10:00
parent a5e54c62b5
commit db584cf563
2 changed files with 4 additions and 1 deletions

View File

@ -263,6 +263,7 @@ class SelectionTool(EditorTool):
command.setText(self.tr("Resize Selection"))
self.editorSession.undoStack.push(command)
self.updateNodes()
self.selectionNode.loadImmediateChunks()
def mousePress(self, event):
self.boxHandleNode.mousePress(event)

View File

@ -157,7 +157,9 @@ class SelectionScene(scenenode.Node):
self.renderSelection = selection & NonAirMaskSelection(self.dimension, selection)
self.groupNode.clear()
self._loader = None
if selection.chunkCount < 16:
def loadImmediateChunks(self):
if self.selection.chunkCount < 16:
exhaust(self.loadSections())
self.loadTimer.setInterval(333)