Small refactor (init set plain instead of with empty list). [CURA-6120]

This commit is contained in:
Remco Burema 2019-02-14 11:05:13 +01:00
parent a24dc00bc5
commit 0e329946f8

View file

@ -40,7 +40,7 @@ class ArrangeObjectsJob(Job):
arranger = Arrange.create(x = machine_width, y = machine_depth, fixed_nodes = self._fixed_nodes, min_offset = self._min_offset) arranger = Arrange.create(x = machine_width, y = machine_depth, fixed_nodes = self._fixed_nodes, min_offset = self._min_offset)
# Build set to exclude children (those get arranged together with the parents). # Build set to exclude children (those get arranged together with the parents).
included_as_child = set([]) included_as_child = set()
for node in self._nodes: for node in self._nodes:
included_as_child.update(node.getAllChildren()) included_as_child.update(node.getAllChildren())