diff --git a/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java b/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java index d51dded35..4a8461a9e 100644 --- a/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java +++ b/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java @@ -99,6 +99,7 @@ public class PhotoPanel extends JPanel implements GLEventListener { @Override public void documentChanged(DocumentChangeEvent event) { log.debug("Repainting on document change"); + configuration = doc.getSelectedConfiguration(); needUpdate = true; PhotoPanel.this.repaint(); } @@ -127,7 +128,7 @@ public class PhotoPanel extends JPanel implements GLEventListener { } PhotoPanel(OpenRocketDocument document, PhotoSettings p) { - this.p = p; + this.p = p; this.setLayout(new BorderLayout()); PhotoPanel.this.configuration = document.getSelectedConfiguration();