diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-05-28 20:49:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-05-28 20:49:48 +0400 |
commit | a8bc1f33974ca4a32b597cb1e0a63b8b3c5cb641 (patch) | |
tree | 7ab49b4dcf9bd3dc2d89f634ae0ae44d775e87ea /source/blender/blenkernel | |
parent | 3030e93a5ba941cefde52c604d52afd4965aad6b (diff) |
fix for a crash in Blender.Mesh,
getting curve data from an object failed (with only 1 curve vertex)
Blender.Mesh didnt check this and crashed.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index 93a3981c4a9..278d49e2198 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -808,6 +808,7 @@ void mball_to_mesh(ListBase *lb, Mesh *me) } } +/* this may fail replacing ob->data, be sure to check ob->type */ void nurbs_to_mesh(Object *ob) { Object *ob1; @@ -847,7 +848,8 @@ void nurbs_to_mesh(Object *ob) dl= dl->next; } if(totvert==0) { - error("can't convert"); + /* error("can't convert"); */ + /* Make Sure you check ob->data is a curve */ return; } |