Small fix for undefined variable in vertex loop if the list is empty.
authorLukas Tönne <lukas.toenne@gmail.com>
Tue, 16 Dec 2014 10:40:31 +0000 (11:40 +0100)
committerLukas Tönne <lukas.toenne@gmail.com>
Tue, 16 Dec 2014 10:40:31 +0000 (11:40 +0100)
object_physics_meadow/duplimesh.py

index e84a115..4cafefe 100644 (file)
@@ -50,6 +50,7 @@ def make_dupli_mesh(name, obmat, samples, scale):
     
     def make_verts():
         verts = []
+        i = 0
         for i, (loc, rot) in enumerate(samples):
             mat = Matrix.Translation(loc) * invobmat * rot * scalemat
             verts.append(mat * Vector((-0.86603, -0.5, 0.0)))