Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Ha <j.ha@ultimaker.com>2017-04-05 11:41:54 +0300
committerJack Ha <j.ha@ultimaker.com>2017-04-05 11:41:54 +0300
commit4e91d55bdfe430e066bdee16ed2b29a3c9948855 (patch)
treeafa81d8375c12675ddb220c39d0872798cd2965d /cura/Arrange.py
parent535330ef515b152a3723070f9b4950a0bcf1f9a1 (diff)
Fix Arranger bestSpot. CURA-3239
Diffstat (limited to 'cura/Arrange.py')
-rwxr-xr-xcura/Arrange.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Arrange.py b/cura/Arrange.py
index aa5f16e3a7..78b89b9e6a 100755
--- a/cura/Arrange.py
+++ b/cura/Arrange.py
@@ -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]: