bugfix regarding missing position UV partials

metadata
Wenzel Jakob 2010-11-30 20:41:42 +01:00
parent 8037292e44
commit 4625fa6241
1 changed files with 15 additions and 16 deletions

View File

@ -265,9 +265,7 @@ Float TriMesh::pdfArea(const ShapeSamplingRecord &sRec) const {
void TriMesh::configure() {
Shape::configure();
if (m_areaPDF.isReady())
return;
if (m_areaPDF.isReady()) {
m_aabb.reset();
if (m_triangleCount == 0)
@ -284,8 +282,9 @@ void TriMesh::configure() {
m_aabb.expandBy(m_positions[i]);
computeNormals();
}
if ((m_bsdf->getType() & BSDF::EAnisotropicMaterial
if (((m_bsdf->getType() & BSDF::EAnisotropicMaterial)
|| m_bsdf->usesRayDifferentials()) && !m_tangents)
computeTangentSpaceBasis();
}