Resizing selection box only triggers immediate chunk loads when mouse button is released.
This commit is contained in:
parent
a5e54c62b5
commit
db584cf563
@ -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)
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user