Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_customdata.cc
| Show First 20 Lines • Show All 347 Lines • ▼ Show 20 Lines | static void read_custom_data_mcols(const std::string &iobject_full_name, | ||||
| else { | else { | ||||
| /* this won't happen due to the checks in read_custom_data() */ | /* this won't happen due to the checks in read_custom_data() */ | ||||
| return; | return; | ||||
| } | } | ||||
| BLI_assert(c3f_ptr || c4f_ptr); | BLI_assert(c3f_ptr || c4f_ptr); | ||||
| /* Read the vertex colors */ | /* Read the vertex colors */ | ||||
| void *cd_data = config.add_customdata_cb( | void *cd_data = config.add_customdata_cb( | ||||
| config.user_data, prop_header.getName().c_str(), CD_MLOOPCOL); | config.mesh, prop_header.getName().c_str(), CD_MLOOPCOL); | ||||
| MCol *cfaces = static_cast<MCol *>(cd_data); | MCol *cfaces = static_cast<MCol *>(cd_data); | ||||
| MPoly *mpolys = config.mpoly; | MPoly *mpolys = config.mpoly; | ||||
| MLoop *mloops = config.mloop; | MLoop *mloops = config.mloop; | ||||
| size_t face_index = 0; | size_t face_index = 0; | ||||
| size_t color_index; | size_t color_index; | ||||
| bool bounds_warning_given = false; | bool bounds_warning_given = false; | ||||
| ▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | static void read_custom_data_uvs(const ICompoundProperty &prop, | ||||
| IV2fGeomParam::Sample sample; | IV2fGeomParam::Sample sample; | ||||
| uv_param.getIndexed(sample, iss); | uv_param.getIndexed(sample, iss); | ||||
| if (uv_param.getScope() != kFacevaryingScope) { | if (uv_param.getScope() != kFacevaryingScope) { | ||||
| return; | return; | ||||
| } | } | ||||
| void *cd_data = config.add_customdata_cb( | void *cd_data = config.add_customdata_cb(config.mesh, prop_header.getName().c_str(), CD_MLOOPUV); | ||||
| config.user_data, prop_header.getName().c_str(), CD_MLOOPUV); | |||||
| read_uvs(config, cd_data, sample.getVals(), sample.getIndices()); | read_uvs(config, cd_data, sample.getVals(), sample.getIndices()); | ||||
| } | } | ||||
| void read_custom_data(const std::string &iobject_full_name, | void read_custom_data(const std::string &iobject_full_name, | ||||
| const ICompoundProperty &prop, | const ICompoundProperty &prop, | ||||
| const CDStreamConfig &config, | const CDStreamConfig &config, | ||||
| const Alembic::Abc::ISampleSelector &iss) | const Alembic::Abc::ISampleSelector &iss) | ||||
| Show All 34 Lines | |||||