Fix AttributeError in BlockTypeButton after changing textureAtlas to editorSession
This commit is contained in:
parent
103a5d9728
commit
b2c63b4dbe
@ -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]
|
||||
|
Reference in New Issue
Block a user