From 9c52fd763323586ecff1713e6b341b996bbe8b5d Mon Sep 17 00:00:00 2001 From: Hehongyuanlove <51571751+Hehongyuanlove@users.noreply.github.com> Date: Fri, 17 Apr 2020 12:58:41 +0800 Subject: [PATCH] Update D3MFExporter.cpp --- code/3MF/D3MFExporter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/3MF/D3MFExporter.cpp b/code/3MF/D3MFExporter.cpp index 725992207..83036b236 100644 --- a/code/3MF/D3MFExporter.cpp +++ b/code/3MF/D3MFExporter.cpp @@ -258,10 +258,10 @@ void D3MFExporter::writeBaseMaterials() { if(color.r <= 1 && color.g <= 1 && color.b <= 1 && color.a <= 1){ 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 );