chiark / gitweb /
Do not reuse an argument variable as iterator
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 4 May 2015 20:18:03 +0000 (16:18 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 4 May 2015 20:18:03 +0000 (16:18 -0400)
commit41083692f13a8ebf288131180a498f76b13b8ce5
tree52c1e223095c3aaeaa13bec670445c72429fcdab
parent8b8f68f9b4d761cfe111693ca3ad801d864da498
Do not reuse an argument variable as iterator

This caused issues with the head/gantry size when printing one object
at a time. The obj variable would never be None at the end of the function
which means it wasn't updating all objects with the gantry size, only the
last object iterated on, which caused the objects to think there are no
collisions between them when printing order was being decided.
This should hopefully fix issue #104
Cura/util/objectScene.py