Fix AttributeError in BlockTypeButton after changing textureAtlas to editorSession

This commit is contained in:
David Vierra 2015-05-11 20:57:56 -10:00
parent 103a5d9728
commit b2c63b4dbe

View File

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