Alembic export: fixed curve type and order.
[blender.git] / source / blender / alembic / intern / abc_curves.cc
index 28e75db2862538006cdd4018993dc1af3f1035c2..58b8d7e05cd03838b8095c07f13954a282d0a5d9 100644 (file)
@@ -95,7 +95,7 @@ void AbcCurveWriter::do_write()
        for (; nurbs; nurbs = nurbs->next) {
                if (nurbs->bp) {
                        curve_basis = Alembic::AbcGeom::kNoBasis;
-                       curve_type = Alembic::AbcGeom::kLinear;
+                       curve_type = Alembic::AbcGeom::kVariableOrder;
 
                        const int totpoint = nurbs->pntsu * nurbs->pntsv;
 
@@ -160,7 +160,7 @@ void AbcCurveWriter::do_write()
                        }
                }
 
-               orders.push_back(nurbs->orderu + 1);
+               orders.push_back(nurbs->orderu);
                vert_counts.push_back(verts.size());
        }