parent
667aa37fdd
commit
66c1a176de
|
@ -1118,7 +1118,7 @@ void BlenderImporter::ConvertMesh(const Scene& /*in*/, const Object* /*obj*/, co
|
||||||
const aiFace& f = out->mFaces[out->mNumFaces++];
|
const aiFace& f = out->mFaces[out->mNumFaces++];
|
||||||
|
|
||||||
aiColor4D* vo = &out->mColors[0][out->mNumVertices];
|
aiColor4D* vo = &out->mColors[0][out->mNumVertices];
|
||||||
const ai_real scaleZeroToOne = 1.f / 255.f;
|
const ai_real scaleZeroToOne = 1.f/255.f;
|
||||||
for (unsigned int j = 0; j < f.mNumIndices; ++j,++vo,++out->mNumVertices) {
|
for (unsigned int j = 0; j < f.mNumIndices; ++j,++vo,++out->mNumVertices) {
|
||||||
const MLoopCol& col = mesh->mloopcol[v.loopstart + j];
|
const MLoopCol& col = mesh->mloopcol[v.loopstart + j];
|
||||||
vo->r = ai_real(col.r) * scaleZeroToOne;
|
vo->r = ai_real(col.r) * scaleZeroToOne;
|
||||||
|
|
Loading…
Reference in New Issue