Fix entity inspector allowing double-deletes

This commit is contained in:
David Vierra 2017-06-27 21:04:20 -10:00
parent 08d8561b20
commit f05c5766d9

View File

@ -266,6 +266,9 @@ class InspectorWidget(QtGui.QWidget, Ui_inspectorWidget):
with command.begin(): with command.begin():
self.entity.chunk.Entities.remove(self.entity) self.entity.chunk.Entities.remove(self.entity)
self.entity = None
self.hide()
def inspectChunk(self, cx, cz): def inspectChunk(self, cx, cz):
self.clearVisuals() self.clearVisuals()