[F] Get return "like true" when error occured.
parent
5b23492421
commit
02d2b6e0d8
|
@ -516,7 +516,7 @@ void glTF2Exporter::ExportMaterials()
|
||||||
if (mat->Get(AI_MATKEY_GLTF_PBRSPECULARGLOSSINESS_GLOSSINESS_FACTOR, pbrSG.glossinessFactor) != AI_SUCCESS) {
|
if (mat->Get(AI_MATKEY_GLTF_PBRSPECULARGLOSSINESS_GLOSSINESS_FACTOR, pbrSG.glossinessFactor) != AI_SUCCESS) {
|
||||||
float shininess;
|
float shininess;
|
||||||
|
|
||||||
if (mat->Get(AI_MATKEY_SHININESS, shininess)) {
|
if (mat->Get(AI_MATKEY_SHININESS, shininess) == AI_SUCCESS) {
|
||||||
pbrSG.glossinessFactor = shininess / 1000;
|
pbrSG.glossinessFactor = shininess / 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue