Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/exporter/abc_writer_mesh.cc
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | |||||
| Alembic::Abc::OObject ABCGenericMeshWriter::get_alembic_object() const | Alembic::Abc::OObject ABCGenericMeshWriter::get_alembic_object() const | ||||
| { | { | ||||
| if (is_subd_) { | if (is_subd_) { | ||||
| return abc_subdiv_; | return abc_subdiv_; | ||||
| } | } | ||||
| return abc_poly_mesh_; | return abc_poly_mesh_; | ||||
| } | } | ||||
| Alembic::Abc::OCompoundProperty ABCGenericMeshWriter::abc_prop_for_custom_props() | |||||
| { | |||||
| if (is_subd_) { | |||||
| return abc_schema_prop_for_custom_props(abc_subdiv_schema_); | |||||
| } | |||||
| return abc_schema_prop_for_custom_props(abc_poly_mesh_schema_); | |||||
| } | |||||
| bool ABCGenericMeshWriter::export_as_subdivision_surface(Object *ob_eval) const | bool ABCGenericMeshWriter::export_as_subdivision_surface(Object *ob_eval) const | ||||
| { | { | ||||
| ModifierData *md = static_cast<ModifierData *>(ob_eval->modifiers.last); | ModifierData *md = static_cast<ModifierData *>(ob_eval->modifiers.last); | ||||
| for (; md; md = md->prev) { | for (; md; md = md->prev) { | ||||
| /* This modifier has been temporarily disabled by SubdivModifierDisabler, | /* This modifier has been temporarily disabled by SubdivModifierDisabler, | ||||
| * so this indicates this is to be exported as subdivision surface. */ | * so this indicates this is to be exported as subdivision surface. */ | ||||
| if (md->type == eModifierType_Subsurf && (md->mode & eModifierMode_DisableTemporary)) { | if (md->type == eModifierType_Subsurf && (md->mode & eModifierMode_DisableTemporary)) { | ||||
| ▲ Show 20 Lines • Show All 417 Lines • Show Last 20 Lines | |||||