소스 검색

Bug Fix:
Failed to get floating values (e.g. opacity) from scene material when ASSIMP_DOUBLE_PRECISION is defined, so they are not reflected to output fbx file.

Kawashima Satoshi 1 년 전
부모
커밋
666ecd3f1f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/AssetLib/FBX/FBXExporter.cpp

+ 1 - 1
code/AssetLib/FBX/FBXExporter.cpp

@@ -1391,7 +1391,7 @@ void FBXExporter::WriteObjects ()
         aiMaterial* m = mScene->mMaterials[i];
 
         // these are used to receive material data
-        float f; aiColor3D c;
+        ai_real f; aiColor3D c;
 
         // start the node record
         FBX::Node n("Material");