Fix #298 - Cope with irregularly shaped imports (e.g. entire worlds)

This commit is contained in:
David Vierra 2017-03-13 16:59:15 -10:00
parent db38556357
commit 2b4beb6551
2 changed files with 6 additions and 2 deletions

View File

@ -80,6 +80,9 @@ class PendingImportNode(Node, QtCore.QObject):
object's position, rotation, and scale.
textureAtlas: TextureAtlas
The textures and block models used to render the preview of the object.
hasHandle: bool
True if this import node should have a user-interactive BoxHandle associated
with it. This is False for the extra copies displayed by a repeated clone.
Attributes
----------

View File

@ -77,5 +77,6 @@ class WorldLoader(object):
else:
chunkPositions = self.scene.dimension.chunkPositions()
for cPos in chunkPositions:
for _ in self.scene.workOnChunk(self.scene.dimension.getChunk(*cPos)):
yield _
if self.scene.dimension.containsChunk(*cPos):
for _ in self.scene.workOnChunk(self.scene.dimension.getChunk(*cPos)):
yield _