diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-24 18:46:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-24 18:46:26 +0300 |
commit | cbebe4ad46082198b5a59fd21efeb99b4e6fd7be (patch) | |
tree | bbfcaaa56c6fa58c3661d234baa1ec8fa2bc2c63 /release/scripts | |
parent | 3a4ead8f0f5b4c8d7af96d8d1984d0469b0c200f (diff) |
* bpy curve api wouldn't give correct errors for bad arguments when appending nurbs.
* the radius on the curves first point was ignored.
* mesh_edges2curves.py was giving all points a tilt of 1.0
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/mesh_edges2curves.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/mesh_edges2curves.py b/release/scripts/mesh_edges2curves.py index 006bdf10b49..670165dda51 100644 --- a/release/scripts/mesh_edges2curves.py +++ b/release/scripts/mesh_edges2curves.py @@ -112,7 +112,7 @@ def mesh2polys(): Window.EditMode(0) me = meshOb.getData(mesh=1) polygons= polysFromMesh(me) - w=t=1 + w = 1.0 cu= Curve.New() cu.name = me.name cu.setFlag(1) @@ -128,7 +128,7 @@ def mesh2polys(): vIdx= 0 v= poly[vIdx] - cu.appendNurb([v.co.x, v.co.y, v.co.z, w, t]) + cu.appendNurb((v.co.x, v.co.y, v.co.z, w)) vIdx += 1 cu[i].type= 0 # Poly Line @@ -139,7 +139,7 @@ def mesh2polys(): # Add all the points in the polyline. while vIdx<len(poly): v= poly[vIdx] - cu.appendPoint(i, [v.co.x, v.co.y, v.co.z, w]) + cu.appendPoint(i, (v.co.x, v.co.y, v.co.z, w)) vIdx+=1 i+=1 Window.WaitCursor(0) |