diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-04 01:42:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-04 01:42:48 +0300 |
commit | a2d6623689bfe75fd20ee59062a7fe1718678a5c (patch) | |
tree | 0c17dd84f022423b7e206bd8f4bfd04f23cc372f /source/blender/blenkernel/intern/lattice.c | |
parent | ccc82beb642e9d78c4c074dcef33d4a954ddafd6 (diff) |
bugfix, curve radius would display incorrectly when there were single point's before a curve. now allow the bevel list to have zero point BevList's to keep in sync with curve->nurb as was expected in a few places.
Diffstat (limited to 'source/blender/blenkernel/intern/lattice.c')
-rw-r--r-- | source/blender/blenkernel/intern/lattice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c index 64c081c27a6..2b815c28cc5 100644 --- a/source/blender/blenkernel/intern/lattice.c +++ b/source/blender/blenkernel/intern/lattice.c @@ -483,6 +483,7 @@ static int where_on_path_deform(Object *ob, float ctime, float *vec, float *dir) /* test for cyclic */ bl= cu->bev.first; + if (!bl->nr) return 0; if(bl && bl->poly> -1) cycl= 1; if(cycl==0) { |