[#1574] Update PhotoPanel configuration on document change
This commit is contained in:
parent
3f55f5c67d
commit
717d880063
@ -99,6 +99,7 @@ public class PhotoPanel extends JPanel implements GLEventListener {
|
|||||||
@Override
|
@Override
|
||||||
public void documentChanged(DocumentChangeEvent event) {
|
public void documentChanged(DocumentChangeEvent event) {
|
||||||
log.debug("Repainting on document change");
|
log.debug("Repainting on document change");
|
||||||
|
configuration = doc.getSelectedConfiguration();
|
||||||
needUpdate = true;
|
needUpdate = true;
|
||||||
PhotoPanel.this.repaint();
|
PhotoPanel.this.repaint();
|
||||||
}
|
}
|
||||||
@ -127,7 +128,7 @@ public class PhotoPanel extends JPanel implements GLEventListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PhotoPanel(OpenRocketDocument document, PhotoSettings p) {
|
PhotoPanel(OpenRocketDocument document, PhotoSettings p) {
|
||||||
this.p = p;
|
this.p = p;
|
||||||
this.setLayout(new BorderLayout());
|
this.setLayout(new BorderLayout());
|
||||||
PhotoPanel.this.configuration = document.getSelectedConfiguration();
|
PhotoPanel.this.configuration = document.getSelectedConfiguration();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user