소스 검색

Update D3MFExporter.cpp

Hehongyuanlove 5 년 전
부모
커밋
9c52fd7633
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      code/3MF/D3MFExporter.cpp

+ 4 - 4
code/3MF/D3MFExporter.cpp

@@ -258,10 +258,10 @@ void D3MFExporter::writeBaseMaterials() {
     		if(color.r <= 1 && color.g <= 1 && color.b <= 1 && color.a <= 1){
     		if(color.r <= 1 && color.g <= 1 && color.b <= 1 && color.a <= 1){
     	
     	
     			 hexDiffuseColor = Rgba2Hex(
     			 hexDiffuseColor = Rgba2Hex(
-    			 	((ai_real)color.r)*255,
-    			 	((ai_real)color.g)*255,
-    			 	((ai_real)color.b)*255,
-    			 	((ai_real)color.a)*255,
+    			 	(int)((ai_real)color.r)*255,
+    			 	(int)((ai_real)color.g)*255,
+    			 	(int)((ai_real)color.b)*255,
+    			 	(int)((ai_real)color.a)*255,
     			 	true
     			 	true
     			 );
     			 );