Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_object.cc
| Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | |||||
| struct Mesh *AbcObjectReader::read_mesh(struct Mesh *existing_mesh, | struct Mesh *AbcObjectReader::read_mesh(struct Mesh *existing_mesh, | ||||
| const Alembic::Abc::ISampleSelector &UNUSED(sample_sel), | const Alembic::Abc::ISampleSelector &UNUSED(sample_sel), | ||||
| int UNUSED(read_flag), | int UNUSED(read_flag), | ||||
| const char **UNUSED(err_str)) | const char **UNUSED(err_str)) | ||||
| { | { | ||||
| return existing_mesh; | return existing_mesh; | ||||
| } | } | ||||
| bool AbcObjectReader::topology_changed(Mesh * /*existing_mesh*/, | |||||
| const Alembic::Abc::ISampleSelector & /*sample_sel*/) | |||||
| { | |||||
| /* The default implementation of read_mesh() just returns the original mesh, so never changes the | |||||
| * topology. */ | |||||
| return false; | |||||
| } | |||||
| void AbcObjectReader::setupObjectTransform(const float time) | void AbcObjectReader::setupObjectTransform(const float time) | ||||
| { | { | ||||
| bool is_constant = false; | bool is_constant = false; | ||||
| this->read_matrix(m_object->obmat, time, m_settings->scale, is_constant); | this->read_matrix(m_object->obmat, time, m_settings->scale, is_constant); | ||||
| invert_m4_m4(m_object->imat, m_object->obmat); | invert_m4_m4(m_object->imat, m_object->obmat); | ||||
| BKE_object_apply_mat4(m_object, m_object->obmat, false, false); | BKE_object_apply_mat4(m_object, m_object->obmat, false, false); | ||||
| ▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines | |||||