Kim Kulling 5 năm trước cách đây
mục cha
commit
aabf12827b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      code/AssetLib/3DS/3DSExporter.cpp

+ 1 - 0
code/AssetLib/3DS/3DSExporter.cpp

@@ -296,6 +296,7 @@ void Discreet3DSExporter::WriteMaterials() {
             WriteColor(color);
         }
 
+        float f;
         if (mat.Get(AI_MATKEY_OPACITY, f) == AI_SUCCESS) {
             ChunkWriter chunk(writer, Discreet3DS::CHUNK_MAT_TRANSPARENCY);
             WritePercentChunk(1.0f - f);