From ffdf5692b9b349d0abb284e015c485a9496f22b9 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 22 May 2014 14:19:29 +0200 Subject: [PATCH] TriMesh::getNormalDerivative(): fixed conditional statement --- src/librender/trimesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librender/trimesh.cpp b/src/librender/trimesh.cpp index fc7ee6be..0339ccf9 100644 --- a/src/librender/trimesh.cpp +++ b/src/librender/trimesh.cpp @@ -802,7 +802,7 @@ void TriMesh::getNormalDerivative(const Intersection &its, dndu = (n1 - n0) * il; dndu -= N * dot(N, dndu); dndv = (n2 - n0) * il; dndv -= N * dot(N, dndv); - if (m_tangents) { + if (m_texcoords) { /* Compute derivatives with respect to a specified texture UV parameterization. */ const Point2