Skip to content

Commit 565cbd6

Browse files
committed
Fixed bug found in prev commit
Normals were being flipped on flipNormals=false in OBJ shapes
1 parent 3b03ced commit 565cbd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/ext/MitsubaLoader/CMitsubaLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ SContext::shape_ass_type CMitsubaLoader::loadBasicShape(SContext& ctx, uint32_t
11211121
break;
11221122
case CElementShape::Type::OBJ:
11231123
mesh = loadModel(shape->obj.filename);
1124-
flipNormals = flipNormals==shape->obj.flipNormals;
1124+
flipNormals = flipNormals!=shape->obj.flipNormals;
11251125
faceNormals = shape->obj.faceNormals;
11261126
maxSmoothAngle = shape->obj.maxSmoothAngle;
11271127
if (mesh && shape->obj.flipTexCoords)

0 commit comments

Comments
 (0)