Fixed partial derivative NaN error for hair (#60)

metadata
Girish Ramesh 2018-05-02 14:00:42 +01:00 committed by Wenzel Jakob
parent 25e110c999
commit 1fd0f671df
1 changed files with 1 additions and 0 deletions

View File

@ -846,6 +846,7 @@ void HairShape::fillIntersectionRecord(const Ray &ray,
its.p += its.geoFrame.n * (m_kdtree->getRadius() - std::sqrt(local.y*local.y+local.z*local.z));
its.shFrame.n = its.geoFrame.n;
coordinateSystem(its.shFrame.n, its.dpdu, its.dpdv);
its.hasUVPartials = false;
its.instance = this;
its.time = ray.time;