Update D3MFExporter.cpp

pull/3158/head
Hehongyuanlove 2020-04-17 12:58:41 +08:00 committed by GitHub
parent f80bdc5b71
commit 9c52fd7633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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, (int)((ai_real)color.r)*255,
((ai_real)color.g)*255, (int)((ai_real)color.g)*255,
((ai_real)color.b)*255, (int)((ai_real)color.b)*255,
((ai_real)color.a)*255, (int)((ai_real)color.a)*255,
true true
); );