From: daid303 Date: Thu, 25 Apr 2013 13:37:35 +0000 (+0200) Subject: Fix a dae load bug. X-Git-Tag: 13.05~48 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=91076b853e8158e514dbaf290208c0db9b7803e3;p=cura.git Fix a dae load bug. --- diff --git a/Cura/util/meshLoaders/dae.py b/Cura/util/meshLoaders/dae.py index 4a0e34df..868a3ffb 100644 --- a/Cura/util/meshLoaders/dae.py +++ b/Cura/util/meshLoaders/dae.py @@ -105,9 +105,9 @@ class daeLoader(object): faceCount = int(triangles['_count']) stepSize = len(indexList) / (faceCount * 3) for i in xrange(0, faceCount): - idx0 = indexList[(i * 3) + 0 * stepSize] - idx1 = indexList[(i * 3) + 1 * stepSize] - idx2 = indexList[(i * 3) + 2 * stepSize] + idx0 = indexList[((i * 3) + 0) * stepSize] + idx1 = indexList[((i * 3) + 1) * stepSize] + idx2 = indexList[((i * 3) + 2) * stepSize] x0 = positionList[idx0*3] y0 = positionList[idx0*3+1] z0 = positionList[idx0*3+2]