diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-14 09:54:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-14 09:54:43 +0300 |
commit | 8bac5ea0c5835a4ce0a23723e05f65a650c86214 (patch) | |
tree | 45e52f9305413b68a8428afcf7799d336172ad5f /source/blender/blenkernel/intern | |
parent | 7cd9926fd876c457fce925f68e3d641015c2f978 (diff) |
Correct bezier curve assert
Bezier curves should have v-points zero'd.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index 9c7473f24d1..6c6019748d6 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -741,7 +741,7 @@ BezTriple *BKE_nurb_bezt_get_prev(Nurb *nu, BezTriple *bezt) BezTriple *bezt_prev; BLI_assert(ARRAY_HAS_ITEM(bezt, nu->bezt, nu->pntsu)); - BLI_assert(nu->pntsv == 1); + BLI_assert(nu->pntsv <= 1); if (bezt == nu->bezt) { if (nu->flagu & CU_NURB_CYCLIC) { @@ -4139,6 +4139,7 @@ bool BKE_nurb_type_convert(Nurb *nu, const short type, const bool use_handles) MEM_freeN(nu->bp); nu->bp = NULL; nu->pntsu = nr; + nu->pntsv = 0; nu->type = CU_BEZIER; BKE_nurb_handles_calc(nu); } |