xxx BlockPicker changed to need textureAtlas and not editorSession

This commit is contained in:
David Vierra 2015-03-17 18:13:35 -10:00
parent 402bdb508a
commit f4b620dbff

View File

@ -539,7 +539,7 @@ class BlockTypeButton(QtGui.QPushButton):
@blocks.setter
def blocks(self, value):
value = [self.blocktypes[block]
value = [self.textureAtlas.blocktypes[block]
if not isinstance(block, BlockType)
else block
for block in value]