Commit 1f6d3475 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed wrong casting of colors

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15401 383ad7c9-94d9-4d36-a494-682f7c89f535
parent df0c9195
......@@ -926,7 +926,7 @@ bool FilePLYPlugin::writeMeshFileAscii(QString _filename, MeshT* _mesh) {
// Write vertex color
if(vColors) {
c = _mesh->color(v_it);
ofs << " " << OpenMesh::color_cast<OpenMesh::Vec3i>(c);
ofs << " " << OpenMesh::color_cast<OpenMesh::Vec3uc>(c);
}
// Write vertex texcoord
......@@ -961,7 +961,7 @@ bool FilePLYPlugin::writeMeshFileAscii(QString _filename, MeshT* _mesh) {
// Write face color
if(fColors) {
c = _mesh->color(f_it);
ofs << " " << OpenMesh::color_cast<OpenMesh::Vec3i>(c);
ofs << " " << OpenMesh::color_cast<OpenMesh::Vec3uc>(c);
}
ofs << "\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment