Silence more uninitialized variable warnings

These are false positives since aiMaterial::Get will have written to output
if it returns AI_SUCCESS but the compiler can't see that.
This commit is contained in:
Turo Lamminen
2015-02-13 12:37:40 +02:00
parent f708d0b122
commit 570d02ff6e
2 changed files with 2 additions and 2 deletions

View File

@@ -452,7 +452,7 @@ void ColladaExporter::WriteMaterials()
}
}
aiShadingMode shading;
aiShadingMode shading = aiShadingMode_Flat;
materials[a].shading_model = "phong";
if(mat->Get( AI_MATKEY_SHADING_MODEL, shading) == aiReturn_SUCCESS) {
if(shading == aiShadingMode_Phong) {