Normand Briere
2019-08-27 dce400da7c65d659129abf9bc6e8f38b360a63d2
ObjEditor.java
....@@ -1882,7 +1882,7 @@
18821882 tabbedPane.add(creditsPanel);
18831883 tabbedPane.setToolTipTextAt(3, "Credits");
18841884
1885
- if (Globals.ADVANCED)
1885
+ if (Globals.SHOWINFO)
18861886 {
18871887 objectPanel.add(infoPanel);
18881888 objectPanel.setIconAt(5, GetIcon("icons/info.png"));
....@@ -4469,6 +4469,8 @@
44694469 CopyChanged(copy);
44704470
44714471 SetVersionStates();
4472
+
4473
+ SetCameras();
44724474 }
44734475
44744476 public boolean Save(boolean user)
....@@ -4547,6 +4549,11 @@
45474549 void RefreshSelection()
45484550 {
45494551 Object3D selection = new Object3D();
4552
+
4553
+ if (objEditor.copy.selection == null)
4554
+ {
4555
+ objEditor.copy.selection = new Object3D();
4556
+ }
45504557
45514558 for (int i = 0; i < objEditor.copy.selection.size(); i++)
45524559 {
....@@ -4682,7 +4689,7 @@
46824689 // Option?
46834690 Replace();
46844691
4685
- System.err.println("Undo");
4692
+ //System.err.println("Previous");
46864693
46874694 //cRadio tab = GetCurrentTab();
46884695
....@@ -4711,6 +4718,8 @@
47114718
47124719 SetVersionStates();
47134720
4721
+ SetCameras();
4722
+
47144723 return true;
47154724 }
47164725
....@@ -4730,6 +4739,8 @@
47304739 CopyChanged(copy);
47314740
47324741 SetVersionStates();
4742
+
4743
+ SetCameras();
47334744
47344745 return true;
47354746 }
....@@ -4771,9 +4782,20 @@
47714782 //if (!tab.user[tab.versionindex])
47724783 // tab.graphs[tab.versionindex] = null;
47734784
4774
- SetVersionStates();
4785
+ SetVersionStates();
4786
+
4787
+ SetCameras();
47754788 }
47764789
4790
+ void SetCameras()
4791
+ {
4792
+ Camera neweye = (Camera)copy.GetObject(cameraView.cameras[0].GetUUID());
4793
+ Camera newlight = (Camera)copy.GetObject(cameraView.LightCamera().GetUUID());
4794
+
4795
+ cameraView.SetCamera(neweye);
4796
+ cameraView.SetLight(newlight);
4797
+ }
4798
+
47774799 void ImportGFD()
47784800 {
47794801 FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD);
....@@ -5119,6 +5141,7 @@
51195141 copy.versionindex = version;
51205142 CopyChanged(copy);
51215143 SetVersionStates();
5144
+ SetCameras();
51225145 }
51235146
51245147 return;