Fix entity inspector allowing double-deletes
This commit is contained in:
parent
08d8561b20
commit
f05c5766d9
@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user