From 4625fa62414c196b0a7c8de7f2c8eab018d16b14 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 30 Nov 2010 20:41:42 +0100 Subject: [PATCH] bugfix regarding missing position UV partials --- src/librender/trimesh.cpp | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/librender/trimesh.cpp b/src/librender/trimesh.cpp index f117b5ac..febd2a66 100644 --- a/src/librender/trimesh.cpp +++ b/src/librender/trimesh.cpp @@ -265,27 +265,26 @@ Float TriMesh::pdfArea(const ShapeSamplingRecord &sRec) const { void TriMesh::configure() { Shape::configure(); - if (m_areaPDF.isReady()) - return; - - m_aabb.reset(); + if (m_areaPDF.isReady()) { + m_aabb.reset(); - if (m_triangleCount == 0) - Log(EError, "Encountered an empty triangle mesh!"); + if (m_triangleCount == 0) + Log(EError, "Encountered an empty triangle mesh!"); - /* Generate a PDF for sampling wrt. area */ - for (size_t i=0; igetType() & BSDF::EAnisotropicMaterial + if (((m_bsdf->getType() & BSDF::EAnisotropicMaterial) || m_bsdf->usesRayDifferentials()) && !m_tangents) computeTangentSpaceBasis(); }