chiark / gitweb /
Fix a dae load bug.
authordaid303 <daid303@gmail.com>
Thu, 25 Apr 2013 13:37:35 +0000 (15:37 +0200)
committerdaid303 <daid303@gmail.com>
Thu, 25 Apr 2013 13:37:35 +0000 (15:37 +0200)
Cura/util/meshLoaders/dae.py

index 4a0e34df8d18a5992981750e06708eee47f192a2..868a3ffb8e4fb63d1f00cc6c87775e09b5ca11e2 100644 (file)
@@ -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]