Kim Kulling 5 年之前
父节点
当前提交
aabf12827b
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);