Fix error after refactor, added comments

This commit is contained in:
Jack Ha 2017-04-04 09:52:07 +02:00
parent 1ebf947ff2
commit 1df9066340
3 changed files with 12 additions and 7 deletions

View file

@ -58,8 +58,10 @@ class Arrange:
for i in range(count):
new_node = copy.deepcopy(node)
x, y = self.bestSpot(
best_spot = self.bestSpot(
offset_shape_arr, start_prio = start_prio, step = step)
x, y = best_spot.x, best_spot.y
start_prio = best_spot.priority
transformation = new_node._transformation
if x is not None: # We could find a place
transformation._data[0][3] = x