diff --git a/avogadro/rendering/povrayvisitor.cpp b/avogadro/rendering/povrayvisitor.cpp index da8e4b80d1..74b66a5e26 100644 --- a/avogadro/rendering/povrayvisitor.cpp +++ b/avogadro/rendering/povrayvisitor.cpp @@ -119,9 +119,7 @@ void POVRayVisitor::visit(SphereGeometry& geometry) m_sceneData += str.str(); } -void POVRayVisitor::visit(AmbientOcclusionSphereGeometry&) -{ -} +void POVRayVisitor::visit(AmbientOcclusionSphereGeometry&) {} void POVRayVisitor::visit(CylinderGeometry& geometry) { @@ -176,14 +174,12 @@ void POVRayVisitor::visit(MeshGeometry& geometry) str << '\n'; } str << "\n}\n"; - str << "\tpigment { rgbt <1.0, 0.0, 0.0, 1.0> }\n" - << "}\n\n"; + str << "\tpigment { rgbt <" << r << ", " << g << "," << b << "," << t + << "> }\n" << "}\n\n"; m_sceneData += str.str(); } -void POVRayVisitor::visit(LineStripGeometry&) -{ -} +void POVRayVisitor::visit(LineStripGeometry&) {} } // namespace Avogadro::Rendering