Skip to content

Commit

Permalink
Fix OpenChemistry#1179 (finally) setting the colors and transparency …
Browse files Browse the repository at this point in the history
…of MO

Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
  • Loading branch information
ghutchis committed May 10, 2023
1 parent d0d34a5 commit c77ead7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions avogadro/rendering/povrayvisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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

1 comment on commit c77ead7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.