Ignore nodes that are outside the build volume for slicing

This commit is contained in:
Arjen Hiemstra 2015-04-20 16:42:19 +02:00
parent 4ae8263238
commit daa6e04d8c

View file

@ -127,7 +127,8 @@ class CuraEngineBackend(Backend):
objects = [] objects = []
for node in DepthFirstIterator(self._scene.getRoot()): for node in DepthFirstIterator(self._scene.getRoot()):
if type(node) is SceneNode and node.getMeshData(): if type(node) is SceneNode and node.getMeshData():
objects.append(node) if not getattr(node, '_outside_buildarea', False):
objects.append(node)
if not objects: if not objects:
return #No point in slicing an empty build plate return #No point in slicing an empty build plate