Merge pull request #1447 from Matter-and-Form/gltf1-color-import-fix
[gltf1] Don’t ignore rgba(1,1,1,1) color propertiespull/1461/head
commit
5c44776532
|
@ -174,11 +174,9 @@ inline void SetMaterialColorProperty(std::vector<int>& embeddedTexIdxs, Asset& r
|
||||||
else {
|
else {
|
||||||
aiColor4D col;
|
aiColor4D col;
|
||||||
CopyValue(prop.color, col);
|
CopyValue(prop.color, col);
|
||||||
if (col.r != 1.f || col.g != 1.f || col.b != 1.f || col.a != 1.f) {
|
|
||||||
mat->AddProperty(&col, 1, pKey, type, idx);
|
mat->AddProperty(&col, 1, pKey, type, idx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void glTFImporter::ImportMaterials(glTF::Asset& r)
|
void glTFImporter::ImportMaterials(glTF::Asset& r)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue