Skip to content

Commit

Permalink
Don't set the molecule, allow the user to do that
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Nov 23, 2024
1 parent 6cce7db commit 38df2a1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion avogadro/viewfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ QWidget* ViewFactory::createView(const QString& view)
// get the background color, etc.
if (m_glWidget != nullptr) {
auto newWidget = new QtOpenGL::GLWidget(m_glWidget);
newWidget->setMolecule(m_glWidget->molecule());
// set the background color, etc.
auto bgColor = m_glWidget->renderer().scene().backgroundColor();
newWidget->renderer().scene().setBackgroundColor(bgColor);
Expand Down

0 comments on commit 38df2a1

Please sign in to comment.