fix an apparent portability issue regarding std::isstream between OSX and Linux

metadata
Wenzel Jakob 2010-09-08 10:36:30 +02:00
parent 234e1a724d
commit e7d808d6e7
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ Hair::Hair(const Properties &props) : Shape(props) {
} else {
std::istringstream iss(line);
iss >> p.x >> p.y >> p.z;
if (iss.good()) {
if (!iss.fail()) {
m_vertices.push_back(p);
m_startFiber.push_back(newFiber);
newFiber = false;