Fix shape_utils genRIB function to use streams correctly.

fixes #290
This commit is contained in:
manuelk 2014-04-25 10:49:59 -07:00
parent 73d891fa12
commit 25cee425f3

View File

@ -298,7 +298,7 @@ std::string shape::genRIB() const {
}
}
rib << "["<<names<<"] " << "["<<nargs<<"] " << "["<<intargs<<"] " << "["<<floatargs<<"] " << "["<<strargs<<"] ";
rib << "["<<names.str()<<"] " << "["<<nargs.str()<<"] " << "["<<intargs.str()<<"] " << "["<<floatargs.str()<<"] " << "["<<strargs.str()<<"] ";
rib << "\"P\" [";
std::copy(verts.begin(), verts.end(), std::ostream_iterator<float>(rib));