Inspect Chunk now switches to the correct widget in inspector panel

This commit is contained in:
David Vierra 2015-11-16 23:10:24 -10:00
parent 12d2ef9c00
commit 4fbad3481e

View File

@ -191,6 +191,7 @@ class InspectorWidget(QtGui.QWidget):
if dim.containsChunk(cx, cz):
chunk = dim.getChunk(cx, cz)
self.setSelectedChunk(chunk)
self.stackedWidget.setCurrentWidget(self.pageInspectChunk)
def setSelectedChunk(self, chunk):
self.selectionNode.selectionBox = chunk.bounds