From 38df2a1ff9a457d3f0034e4c55c72fa53628c469 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Fri, 22 Nov 2024 22:02:43 -0500 Subject: [PATCH] Don't set the molecule, allow the user to do that Signed-off-by: Geoff Hutchison --- avogadro/viewfactory.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/avogadro/viewfactory.cpp b/avogadro/viewfactory.cpp index b11592c9..05c77d21 100644 --- a/avogadro/viewfactory.cpp +++ b/avogadro/viewfactory.cpp @@ -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);