Fix warning related to unreachable-code.

Signed-off-by: Jackie9527 <80555200+Jackie9527@users.noreply.github.com>
pull/5042/head
Jackie9527 2023-04-01 13:02:04 +08:00
parent 1dcb5da1cd
commit 04066ece8e
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ void LWOImporter::ConvertMaterial(const LWO::Surface &surf, aiMaterial *pcMat) {
// (the diffuse value is just a scaling factor)
// If a diffuse texture is set, we set this value to 1.0
clr = (b && false ? aiColor3D(1.0, 1.0, 1.0) : surf.mColor);
clr = (b ? aiColor3D(1.0, 1.0, 1.0) : surf.mColor);
clr.r *= surf.mDiffuseValue;
clr.g *= surf.mDiffuseValue;
clr.b *= surf.mDiffuseValue;