Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_customdata.cc
| Context not available. | |||||
| MLoop *mloops = config.mloop; | MLoop *mloops = config.mloop; | ||||
| MCol *cfaces = static_cast<MCol *>(data); | MCol *cfaces = static_cast<MCol *>(data); | ||||
| std::vector<Imath::C4f> buffer(config.totvert); | std::vector<Imath::C4f> buffer; | ||||
| std::vector<uint32_t> indices; | |||||
| Imath::C4f col; | Imath::C4f col; | ||||
| Context not available. | |||||
| col[2] = cface->g * cscale; | col[2] = cface->g * cscale; | ||||
| col[3] = cface->b * cscale; | col[3] = cface->b * cscale; | ||||
| buffer[mloop->v] = col; | buffer.push_back(col); | ||||
| indices.push_back(buffer.size() - 1); | |||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| OC4fGeomParam::Sample sample( | OC4fGeomParam::Sample sample( | ||||
| C4fArraySample(&buffer.front(), buffer.size()), | C4fArraySample(&buffer.front(), buffer.size()), | ||||
| UInt32ArraySample(&indices.front(), indices.size()), | |||||
| kVertexScope); | kVertexScope); | ||||
| param.set(sample); | param.set(sample); | ||||
| Context not available. | |||||