Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/intern/abc_reader_nurbs.cc
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (!Alembic::AbcGeom::INuPatch::matches(alembic_header)) { | if (!Alembic::AbcGeom::INuPatch::matches(alembic_header)) { | ||||
| *err_str = | *err_str = | ||||
| "Object type mismatch, Alembic object path pointed to NURBS when importing, but not any " | "Object type mismatch, Alembic object path pointed to NURBS when importing, but not any " | ||||
| "more."; | "more."; | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (ob->type != OB_CURVE) { | if (ob->type != OB_CURVES_LEGACY) { | ||||
| *err_str = "Object type mismatch, Alembic object path points to NURBS."; | *err_str = "Object type mismatch, Alembic object path points to NURBS."; | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| static bool set_knots(const FloatArraySamplePtr &knots, float *&nu_knots) | static bool set_knots(const FloatArraySamplePtr &knots, float *&nu_knots) | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||