Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/exporter/abc_writer_nurbs.cc
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| /* Check if object has shape keys. */ | /* Check if object has shape keys. */ | ||||
| Curve *cu = static_cast<Curve *>(context.object->data); | Curve *cu = static_cast<Curve *>(context.object->data); | ||||
| return (cu->key != nullptr); | return (cu->key != nullptr); | ||||
| } | } | ||||
| bool ABCNurbsWriter::is_supported(const HierarchyContext *context) const | bool ABCNurbsWriter::is_supported(const HierarchyContext *context) const | ||||
| { | { | ||||
| return ELEM(context->object->type, OB_SURF, OB_CURVE); | return ELEM(context->object->type, OB_SURF, OB_CURVES_LEGACY); | ||||
| } | } | ||||
| static void get_knots(std::vector<float> &knots, const int num_knots, float *nu_knots) | static void get_knots(std::vector<float> &knots, const int num_knots, float *nu_knots) | ||||
| { | { | ||||
| if (num_knots <= 1) { | if (num_knots <= 1) { | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||