Fixed ToMayaCurveConverter for cubic non periodic curves.
Calling vertexArray.length() once
Merge pull request #256 from valeriebernard/ToMayaCurveConverterFix

Fixed ToMayaCurveConverter for cubic non periodic curves.