New rows in replacement list start empty on the left

This commit is contained in:
David Vierra 2016-02-07 01:36:03 -10:00
parent 0542161fe0
commit 90302bc795

View File

@ -42,7 +42,7 @@ class BlockReplacementList(QtGui.QWidget, Ui_BlockReplacements):
return self.editorSession.worldEditor.blocktypes if self.editorSession else None return self.editorSession.worldEditor.blocktypes if self.editorSession else None
def addNewRow(self): def addNewRow(self):
self.addRow([self.blocktypes["air"]], self.blocktypes["air"]) self.addRow([], self.blocktypes["air"])
def addRow(self, oldBlocks, newBlock): def addRow(self, oldBlocks, newBlock):
assert self.editorSession is not None, "Must set BlockReplacementList.editorSession before using" assert self.editorSession is not None, "Must set BlockReplacementList.editorSession before using"