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

@@ -294,7 +294,7 @@ void Discreet3DSExporter::WriteMaterials()
WriteColor(color);
}
aiShadingMode shading_mode;
aiShadingMode shading_mode = aiShadingMode_Flat;
if (mat.Get(AI_MATKEY_SHADING_MODEL, shading_mode) == AI_SUCCESS) {
ChunkWriter chunk(writer, Discreet3DS::CHUNK_MAT_SHADING);