Inspect Chunk now switches to the correct widget in inspector panel
This commit is contained in:
parent
12d2ef9c00
commit
4fbad3481e
@ -191,6 +191,7 @@ class InspectorWidget(QtGui.QWidget):
|
|||||||
if dim.containsChunk(cx, cz):
|
if dim.containsChunk(cx, cz):
|
||||||
chunk = dim.getChunk(cx, cz)
|
chunk = dim.getChunk(cx, cz)
|
||||||
self.setSelectedChunk(chunk)
|
self.setSelectedChunk(chunk)
|
||||||
|
self.stackedWidget.setCurrentWidget(self.pageInspectChunk)
|
||||||
|
|
||||||
def setSelectedChunk(self, chunk):
|
def setSelectedChunk(self, chunk):
|
||||||
self.selectionNode.selectionBox = chunk.bounds
|
self.selectionNode.selectionBox = chunk.bounds
|
||||||
|
Reference in New Issue
Block a user