bugfix regarding missing position UV partials
parent
8037292e44
commit
4625fa6241
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue