Fix Arranger bestSpot. CURA-3239

This commit is contained in:
Jack Ha 2017-04-05 10:41:54 +02:00
parent 535330ef51
commit 4e91d55bdf

View file

@ -128,7 +128,7 @@ class Arrange:
def bestSpot(self, shape_arr, start_prio = 0, step = 1):
start_idx_list = numpy.where(self._priority_unique_values == start_prio)
if start_idx_list:
start_idx = start_idx_list[0]
start_idx = start_idx_list[0][0]
else:
start_idx = 0
for prio in self._priority_unique_values[start_idx::step]: