Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/exporter/obj_exporter.cc
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | DEG_OBJECT_ITER_BEGIN (depsgraph, object, deg_objects_visibility_flags) { | ||||
| } | } | ||||
| switch (object->type) { | switch (object->type) { | ||||
| case OB_SURF: | case OB_SURF: | ||||
| /* Export in mesh form: vertices and polygons. */ | /* Export in mesh form: vertices and polygons. */ | ||||
| ATTR_FALLTHROUGH; | ATTR_FALLTHROUGH; | ||||
| case OB_MESH: | case OB_MESH: | ||||
| r_exportable_meshes.append(std::make_unique<OBJMesh>(depsgraph, export_params, object)); | r_exportable_meshes.append(std::make_unique<OBJMesh>(depsgraph, export_params, object)); | ||||
| break; | break; | ||||
| case OB_CURVE: { | case OB_CURVES_LEGACY: { | ||||
| Curve *curve = static_cast<Curve *>(object->data); | Curve *curve = static_cast<Curve *>(object->data); | ||||
| Nurb *nurb{static_cast<Nurb *>(curve->nurb.first)}; | Nurb *nurb{static_cast<Nurb *>(curve->nurb.first)}; | ||||
| if (!nurb) { | if (!nurb) { | ||||
| /* An empty curve. Not yet supported to export these as meshes. */ | /* An empty curve. Not yet supported to export these as meshes. */ | ||||
| if (export_params.export_curves_as_nurbs) { | if (export_params.export_curves_as_nurbs) { | ||||
| r_exportable_nurbs.append( | r_exportable_nurbs.append( | ||||
| std::make_unique<OBJCurve>(depsgraph, export_params, object)); | std::make_unique<OBJCurve>(depsgraph, export_params, object)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||