Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_hair.cc
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | AbcHairWriter::AbcHairWriter(Object *ob, | ||||
| m_schema = curves.getSchema(); | m_schema = curves.getSchema(); | ||||
| } | } | ||||
| void AbcHairWriter::do_write() | void AbcHairWriter::do_write() | ||||
| { | { | ||||
| if (!m_psys) { | if (!m_psys) { | ||||
| return; | return; | ||||
| } | } | ||||
| Mesh *mesh = mesh_get_eval_final(m_settings.depsgraph, m_settings.scene, m_object, CD_MASK_MESH); | Mesh *mesh = mesh_get_eval_final(m_settings.depsgraph, m_settings.scene, m_object, &CD_MASK_MESH); | ||||
| BKE_mesh_tessface_ensure(mesh); | BKE_mesh_tessface_ensure(mesh); | ||||
| std::vector<Imath::V3f> verts; | std::vector<Imath::V3f> verts; | ||||
| std::vector<int32_t> hvertices; | std::vector<int32_t> hvertices; | ||||
| std::vector<Imath::V2f> uv_values; | std::vector<Imath::V2f> uv_values; | ||||
| std::vector<Imath::V3f> norm_values; | std::vector<Imath::V3f> norm_values; | ||||
| if (m_psys->pathcache) { | if (m_psys->pathcache) { | ||||
| ▲ Show 20 Lines • Show All 215 Lines • Show Last 20 Lines | |||||