[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2161] branches/ivygen/truman_ivy/ add_curve_ivygen.py: - Version 0.0.2
Andrew Hale
TrumanBlending at gmail.com
Fri Jul 22 08:43:31 CEST 2011
Revision: 2161
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2161
Author: trumanblending
Date: 2011-07-22 06:43:30 +0000 (Fri, 22 Jul 2011)
Log Message:
-----------
- Version 0.0.2
- Minor code cleanup
Modified Paths:
--------------
branches/ivygen/truman_ivy/add_curve_ivygen.py
Modified: branches/ivygen/truman_ivy/add_curve_ivygen.py
===================================================================
--- branches/ivygen/truman_ivy/add_curve_ivygen.py 2011-07-22 06:42:47 UTC (rev 2160)
+++ branches/ivygen/truman_ivy/add_curve_ivygen.py 2011-07-22 06:43:30 UTC (rev 2161)
@@ -21,7 +21,7 @@
bl_info = {
"name": "IvyGen",
"author": "testscreenings, PKHG, TrumanBlending",
- "version": (0, 0, 1),
+ "version": (0, 0, 2),
"blender": (2, 5, 8),
"api": 38479,
"location": "View3D > Add > Curve",
@@ -33,7 +33,7 @@
import bpy
-from bpy.props import FloatProperty, IntProperty, BoolProperty, PointerProperty
+from bpy.props import FloatProperty, IntProperty, PointerProperty
from mathutils import Vector, Matrix
from collections import deque
from math import pow, cos, pi, atan2
@@ -499,9 +499,7 @@
# Make an iterator to check if all are alive
checkAliveIter = (r.alive for r in IVY.ivyRoots)
- checkAlive = False
- if True in checkAliveIter:
- checkAlive = True
+ checkAlive = (True in checkAliveIter)
# Create the curve and leaf geometry
curveOb = createIvyCurves(IVY, radius)
More information about the Bf-extensions-cvs
mailing list