Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/exporter/abc_hierarchy_iterator.cc
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| ABCAbstractWriter *ABCHierarchyIterator::create_data_writer_for_object_type( | ABCAbstractWriter *ABCHierarchyIterator::create_data_writer_for_object_type( | ||||
| const HierarchyContext *context, const ABCWriterConstructorArgs &writer_args) | const HierarchyContext *context, const ABCWriterConstructorArgs &writer_args) | ||||
| { | { | ||||
| switch (context->object->type) { | switch (context->object->type) { | ||||
| case OB_MESH: | case OB_MESH: | ||||
| return new ABCMeshWriter(writer_args); | return new ABCMeshWriter(writer_args); | ||||
| case OB_CAMERA: | case OB_CAMERA: | ||||
| return new ABCCameraWriter(writer_args); | return new ABCCameraWriter(writer_args); | ||||
| case OB_CURVE: | case OB_CURVES_LEGACY: | ||||
| if (params_.curves_as_mesh) { | if (params_.curves_as_mesh) { | ||||
| return new ABCCurveMeshWriter(writer_args); | return new ABCCurveMeshWriter(writer_args); | ||||
| } | } | ||||
| return new ABCCurveWriter(writer_args); | return new ABCCurveWriter(writer_args); | ||||
| case OB_SURF: | case OB_SURF: | ||||
| if (params_.curves_as_mesh) { | if (params_.curves_as_mesh) { | ||||
| return new ABCCurveMeshWriter(writer_args); | return new ABCCurveMeshWriter(writer_args); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||