Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/intern/abc_customdata.cc
| Show First 20 Lines • Show All 480 Lines • ▼ Show 20 Lines | static void read_custom_data_uvs(const ICompoundProperty &prop, | ||||
| read_uvs(config, cd_data, sample.getVals(), sample.getIndices()); | read_uvs(config, cd_data, sample.getVals(), sample.getIndices()); | ||||
| } | } | ||||
| void read_generated_coordinates(const ICompoundProperty &prop, | void read_generated_coordinates(const ICompoundProperty &prop, | ||||
| const CDStreamConfig &config, | const CDStreamConfig &config, | ||||
| const Alembic::Abc::ISampleSelector &iss) | const Alembic::Abc::ISampleSelector &iss) | ||||
| { | { | ||||
| if (!prop.valid()) { | |||||
| return; | |||||
| } | |||||
| if (prop.getPropertyHeader(propNameOriginalCoordinates) == nullptr) { | if (prop.getPropertyHeader(propNameOriginalCoordinates) == nullptr) { | ||||
| /* The ORCO property isn't there, so don't bother trying to process it. */ | /* The ORCO property isn't there, so don't bother trying to process it. */ | ||||
| return; | return; | ||||
| } | } | ||||
| IV3fGeomParam param(prop, propNameOriginalCoordinates); | IV3fGeomParam param(prop, propNameOriginalCoordinates); | ||||
| if (!param.valid() || param.isIndexed()) { | if (!param.valid() || param.isIndexed()) { | ||||
| /* Invalid or indexed coordinates aren't supported. */ | /* Invalid or indexed coordinates aren't supported. */ | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||