[Bf-extensions-cvs] [d9567c2] master: Small fix for undefined variable in vertex loop if the list is empty.

Lukas Tönne noreply at git.blender.org
Tue Dec 16 11:41:01 CET 2014


Commit: d9567c2dc32318813ed1b40b612442db667375a1
Author: Lukas Tönne
Date:   Tue Dec 16 11:40:31 2014 +0100
Branches: master
https://developer.blender.org/rBACd9567c2dc32318813ed1b40b612442db667375a1

Small fix for undefined variable in vertex loop if the list is empty.

===================================================================

M	object_physics_meadow/duplimesh.py

===================================================================

diff --git a/object_physics_meadow/duplimesh.py b/object_physics_meadow/duplimesh.py
index e84a115..4cafefe 100644
--- a/object_physics_meadow/duplimesh.py
+++ b/object_physics_meadow/duplimesh.py
@@ -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)))



More information about the Bf-extensions-cvs mailing list