diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-19 18:59:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-19 19:12:29 +0300 |
commit | d7d3233715503ecc15b8dd1973f7e73257e2cbda (patch) | |
tree | f9f9ab24b89fe574b3f972e45c8337bcd791a9b1 /add_curve_ivygen.py | |
parent | 84b817117328b3193533324846ec389b1f5fe5c4 (diff) |
Spelling fixes in comments and descriptions, patch by luzpaz.
Differential Revision: https://developer.blender.org/D3746
Diffstat (limited to 'add_curve_ivygen.py')
-rw-r--r-- | add_curve_ivygen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add_curve_ivygen.py b/add_curve_ivygen.py index 7a90b3b9..89b6abf0 100644 --- a/add_curve_ivygen.py +++ b/add_curve_ivygen.py @@ -67,7 +67,7 @@ def createIvyGeometry(IVY, growLeaves): # local_ivyBranchSize = IVY.ivyBranchSize # * radius * IVY.ivySize gaussWeight = (1.0, 2.0, 4.0, 7.0, 9.0, 10.0, 9.0, 7.0, 4.0, 2.0, 1.0) - # Create a new curve and intialise it + # Create a new curve and initialise it curve = bpy.data.curves.new("IVY", type='CURVE') curve.dimensions = '3D' curve.bevel_depth = 1 @@ -277,7 +277,7 @@ class Ivy: self.maxAdhesionDistance = maxAdhesionDistance self.maxLength = 0.0 - # Normalize all the weights only on intialisation + # Normalize all the weights only on initialisation sums = self.primaryWeight + self.randomWeight + self.adhesionWeight self.primaryWeight /= sums self.randomWeight /= sums @@ -432,7 +432,7 @@ def collision(ob, pos, new_pos): if ray_result[0]: # Check whether the collision is going into the object if tran_dir.dot(ray_result[2]) < 0.0: - # Find projection of the piont onto the plane + # Find projection of the point onto the plane p0 = tran_new_pos - (tran_new_pos - ray_result[1]).project(ray_result[2]) # Reflect in the plane |