Normand Briere
2019-07-17 a5580a47d246c1272b10adba68070f6e13da5e41
GroupEditor.java
....@@ -84,6 +84,10 @@
8484
8585 void CloneSelection(boolean supports)
8686 {
87
+ if (Globals.REPLACEONMAKE)
88
+ Save();
89
+ boolean keep = Globals.REPLACEONMAKE;
90
+ Globals.REPLACEONMAKE = false;
8791 // Object3D keep = GrafreeD.clipboard;
8892 //Object3D obj;
8993 for (int i=0; i<group.selection.size(); i++)// Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -94,6 +98,7 @@
9498
9599 makeSomething(clone, i==group.selection.size()-1);
96100 }
101
+ Globals.REPLACEONMAKE = keep;
97102 }
98103
99104 void CloneClipboard(boolean supports)
....@@ -204,23 +209,23 @@
204209 //zBufferItem.addActionListener(this);
205210 //cameraMenu.add(normalLensItem = new MenuItem("Normal Lens"));
206211 //normalLensItem.addActionListener(this);
207
- cameraMenu.add(revertCameraItem = new MenuItem("Restore Viewpoint"));
208
- revertCameraItem.addActionListener(this);
212
+ cameraMenu.add(restoreCameraItem = new MenuItem("Restore Viewpoint"));
213
+ restoreCameraItem.addActionListener(this);
209214
210
- cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen"));
211
- toggleFullScreenItem.addItemListener(this);
212
- toggleFullScreenItem.setState(CameraPane.FULLSCREEN);
213
- cameraMenu.add("-");
215
+// cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen"));
216
+// toggleFullScreenItem.addItemListener(this);
217
+// toggleFullScreenItem.setState(CameraPane.FULLSCREEN);
218
+// cameraMenu.add("-");
219
+//
220
+// cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture"));
221
+// toggleTextureItem.addItemListener(this);
222
+// toggleTextureItem.setState(CameraPane.textureon);
223
+//
224
+// cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch"));
225
+// toggleSwitchItem.addItemListener(this);
226
+// toggleSwitchItem.setState(CameraPane.SWITCH);
214227
215
- cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture"));
216
- toggleTextureItem.addItemListener(this);
217
- toggleTextureItem.setState(CameraPane.textureon);
218
-
219
- cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch"));
220
- toggleSwitchItem.addItemListener(this);
221
- toggleSwitchItem.setState(CameraPane.SWITCH);
222
-
223
- cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles"));
228
+ cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Show Handles"));
224229 toggleHandleItem.addItemListener(this);
225230 toggleHandleItem.setState(CameraPane.HANDLES);
226231
....@@ -275,7 +280,7 @@
275280 {
276281 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
277282 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
278
- //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
283
+ //cameraMenu.add(switchViewItem = new MenuItem("Reverse View"));
279284 editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf"));
280285 oe.cameraMenu.add("-");
281286 openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy..."));
....@@ -283,7 +288,7 @@
283288 editLeafItem.addActionListener(this);
284289 lookAtItem.addActionListener(this);
285290 //lookFromItem.addActinoListener(this);
286
- //switchItem.addActionListener(this);
291
+ //switchViewItem.addActionListener(this);
287292 }
288293
289294 oe.menuBar.add(menu = new Menu("Setting"));
....@@ -328,14 +333,14 @@
328333 }
329334
330335 oe.menuBar.add(menu = new Menu("Group"));
331
- grabItem = menu.add(new MenuItem("Grab"));
332
- grabItem.addActionListener(this);
336
+// grabItem = menu.add(new MenuItem("Grab"));
337
+// grabItem.addActionListener(this);
333338 backItem = menu.add(new MenuItem("Back"));
334339 backItem.addActionListener(this);
335340 frontItem = menu.add(new MenuItem("Front"));
336341 frontItem.addActionListener(this);
337
- compositeItem = menu.add(new MenuItem("Composite"));
338
- compositeItem.addActionListener(this);
342
+// compositeItem = menu.add(new MenuItem("Composite"));
343
+// compositeItem.addActionListener(this);
339344
340345 if (Globals.ADVANCED)
341346 {
....@@ -345,10 +350,10 @@
345350 ungroupItem = menu.add(new MenuItem("Ungroup"));
346351 ungroupItem.addActionListener(this);
347352
348
- menu.add("-");
349
-
350
- randomItem = menu.add(new MenuItem("Switch node"));
351
- randomItem.addActionListener(this);
353
+// menu.add("-");
354
+//
355
+// switchItem = menu.add(new MenuItem("Switch node"));
356
+// switchItem.addActionListener(this);
352357 if (Globals.ADVANCED)
353358 {
354359 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
....@@ -365,13 +370,11 @@
365370 frameselectorItem.addActionListener(this);
366371 scriptNodeItem = menu.add(new MenuItem("Script Node"));
367372 scriptNodeItem.addActionListener(this);
368
- cameraItem = menu.add(new MenuItem("Camera"));
369
- cameraItem.addActionListener(this);
370373 }
371374
372375 oe.menuBar.add(menu = new Menu("Object"));
373
- textureItem = menu.add(new MenuItem("Texture"));
374
- textureItem.addActionListener(this);
376
+// textureItem = menu.add(new MenuItem("Texture"));
377
+// textureItem.addActionListener(this);
375378 billboardItem = menu.add(new MenuItem("Billboard"));
376379 billboardItem.addActionListener(this);
377380 csgItem = menu.add(new MenuItem("CSG"));
....@@ -382,13 +385,14 @@
382385 shadowYItem.addActionListener(this);
383386 shadowZItem = menu.add(new MenuItem("Shadow Blue"));
384387 shadowZItem.addActionListener(this);
388
+ attributeItem = menu.add(new MenuItem("Attribute"));
389
+ attributeItem.addActionListener(this);
390
+
385391 if (Globals.ADVANCED)
386392 {
387393 menu.add("-");
388394 linkerItem = menu.add(new MenuItem("Linker"));
389395 linkerItem.addActionListener(this);
390
- attributeItem = menu.add(new MenuItem("Attribute"));
391
- attributeItem.addActionListener(this);
392396 templateItem = menu.add(new MenuItem("Template"));
393397 templateItem.addActionListener(this);
394398 pointflowItem = menu.add(new MenuItem("Point Flow"));
....@@ -540,6 +544,7 @@
540544 buildToolsMenu(menu);
541545 }
542546
547
+
543548 void SetupUI2(ObjEditor oe)
544549 {
545550 // June 2019
....@@ -582,53 +587,79 @@
582587 oe.radioPanel.add(dummyButton);
583588 oe.buttonGroup.add(dummyButton);
584589 */
590
+ cGridBag copyOptionsPanel = new cGridBag();
591
+
592
+ copyOptionsPanel.preferredHeight = 1;
593
+
585594 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
586595
587596 //oe.toolbarPanel.add(minButton = new cButton("Min", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
588597 //minButton.setToolTipText("Minimize window");
589598 //minButton.addActionListener(this);
590599
591
- oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
592
- maxButton.setToolTipText("Maximize window");
593
- maxButton.addActionListener(this);
600
+ if (Globals.ADVANCED)
601
+ {
602
+ oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
603
+ maxButton.setToolTipText("Maximize window");
604
+ maxButton.addActionListener(this);
605
+ }
594606
595607 oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
596608 fullButton.setToolTipText("Full-screen window");
597609 fullButton.addActionListener(this);
598610
599
- oe.toolboxPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
600
- undoButton.setToolTipText("Undo changes");
601
- undoButton.addActionListener(this);
611
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
612
+ screenfitButton.setToolTipText("Screen fit");
613
+ screenfitButton.addActionListener(this);
614
+
615
+ oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
616
+ restoreCameraButton.setToolTipText("Restore viewpoint");
617
+ restoreCameraButton.addActionListener(this);
602618
603
- oe.toolboxPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
604
- redoButton.setToolTipText("Redo changes");
605
- redoButton.addActionListener(this);
606
-
607
- oe.toolboxPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
608
- saveButton.setToolTipText("Save changes");
619
+ copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
620
+ saveButton.setToolTipText("New version");
609621 saveButton.addActionListener(this);
622
+
623
+ copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
624
+ undoButton.setToolTipText("Previous version");
625
+ undoButton.addActionListener(this);
626
+ undoButton.setEnabled(false);
610627
611
- oe.toolboxPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints);
628
+ cGridBag updown = new cGridBag().setVertical(true);
629
+ updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
630
+ restoreButton.setToolTipText("Restore current");
631
+ restoreButton.addActionListener(this);
632
+ restoreButton.setEnabled(false);
633
+
634
+ updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
635
+ replaceButton.setToolTipText("Replace current");
636
+ replaceButton.addActionListener(this);
637
+ replaceButton.setEnabled(false);
638
+
639
+ copyOptionsPanel.add(updown);
640
+
641
+ copyOptionsPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
642
+ redoButton.setToolTipText("Next version");
643
+ redoButton.addActionListener(this);
644
+ redoButton.setEnabled(false);
645
+
646
+ oe.toolbarPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints);
612647 liveCB.setToolTipText("Enable animation");
613648 liveCB.addItemListener(this);
614649
615
- oe.toolboxPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
650
+ oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
616651 oneStepButton.setToolTipText("Animate one step forward");
617652 oneStepButton.addActionListener(this);
618653
619
- oe.toolboxPanel.add(fastCB = GetToggleButton("icons/runfast.png", CameraPane.FAST)); //, constraints);
654
+ oe.toolbarPanel.add(fastCB = GetToggleButton("icons/runfast.png", CameraPane.FAST)); //, constraints);
620655 fastCB.setToolTipText("Fast mode");
621656 fastCB.addItemListener(this);
622657
623
- oe.toolboxPanel.Return();
658
+ //oe.toolboxPanel.Return();
624659
625
- oe.toolboxPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints);
626
- trackCB.setToolTipText("Enable tracking");
627
- trackCB.addItemListener(this);
628
-
629
- oe.toolboxPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
630
- screenfitButton.setToolTipText("Screen fit");
631
- screenfitButton.addActionListener(this);
660
+// copyOptionsPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints);
661
+// trackCB.setToolTipText("Enable tracking");
662
+// trackCB.addItemListener(this);
632663
633664 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
634665 // screenfitpointButton.addActionListener(this);
....@@ -640,10 +671,6 @@
640671 snapobjectButton.setToolTipText("Snap Object");
641672 }
642673
643
- oe.toolboxPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
644
- flashSelectionButton.setToolTipText("Highlight selection");
645
- flashSelectionButton.addActionListener(this);
646
-
647674 //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
648675
649676 oe.toolbarPanel.add(twoButton = new cButton("|-|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -688,8 +715,6 @@
688715 sphereButton.setToolTipText("Create sphere");
689716 sphereButton.addActionListener(this);
690717
691
- oe.toolboxPanel.Return();
692
-
693718 oe.toolboxPanel.add(coneButton = GetButton("icons/cone.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
694719 coneButton.setToolTipText("Create cone");
695720 coneButton.addActionListener(this);
....@@ -713,6 +738,28 @@
713738 particlesButton.setToolTipText("Create particle system");
714739 particlesButton.addActionListener(this);
715740
741
+ oe.toolboxPanel.Return();
742
+
743
+ oe.toolboxPanel.add(groupButton = GetButton("icons/group.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
744
+ groupButton.setToolTipText("Create group");
745
+ groupButton.addActionListener(this);
746
+
747
+ oe.toolboxPanel.add(compositeButton = GetButton("icons/composite.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
748
+ compositeButton.setToolTipText("Create composite");
749
+ compositeButton.addActionListener(this);
750
+
751
+ oe.toolboxPanel.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
752
+ switchButton.setToolTipText("Create item switcher");
753
+ switchButton.addActionListener(this);
754
+
755
+ oe.toolboxPanel.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
756
+ loopButton.setToolTipText("Create loop");
757
+ loopButton.addActionListener(this);
758
+
759
+ oe.toolboxPanel.add(textureButton = GetButton("icons/texture.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
760
+ textureButton.setToolTipText("Create texture");
761
+ textureButton.addActionListener(this);
762
+
716763 oe.toolboxPanel.add(overlayButton = GetButton("icons/overlay.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
717764 overlayButton.setToolTipText("Create overlay");
718765 overlayButton.addActionListener(this);
....@@ -721,17 +768,29 @@
721768 lightButton.setToolTipText("Create light");
722769 lightButton.addActionListener(this);
723770
771
+ for (int i=6; --i>=0;)
772
+ {
773
+ oe.toolboxPanel.Return();
774
+ oe.toolboxPanel.add(new cGridBag());
775
+ oe.toolboxPanel.add(new cGridBag());
776
+ oe.toolboxPanel.add(new cGridBag());
777
+ oe.toolboxPanel.add(new cGridBag());
778
+ oe.toolboxPanel.add(new cGridBag());
779
+ oe.toolboxPanel.add(new cGridBag());
780
+ oe.toolboxPanel.add(new cGridBag());
781
+ }
782
+
724783 // EDIT panel
725
- editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
726
- editButton.setToolTipText("Edit selection");
784
+ editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
785
+ editButton.setToolTipText("Pin selection controls");
727786 editButton.addActionListener(this);
728787
729
- editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
730
- uneditButton.setToolTipText("Unedit selection");
788
+ editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
789
+ uneditButton.setToolTipText("Remove selection controls");
731790 uneditButton.addActionListener(this);
732791
733792 editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
734
- allParamsButton.setToolTipText("Edit all params");
793
+ allParamsButton.setToolTipText("Show all controle");
735794 allParamsButton.addActionListener(this);
736795
737796 editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -742,8 +801,13 @@
742801 unselectButton.setToolTipText("Unselect");
743802 unselectButton.addActionListener(this);
744803
804
+ editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
805
+ flashSelectionButton.setToolTipText("Highlight selection");
806
+ flashSelectionButton.addActionListener(this);
807
+
745808 editCommandsPanel.preferredHeight = 1;
746809
810
+ SetPinStates(false);
747811 // oe.treePanel.add(commandsPanel);
748812 // oe.treePanel.Return();
749813
....@@ -768,23 +832,11 @@
768832 oe.treePanel.add(jSPPanel);
769833 oe.treePanel.Return();
770834
771
- cGridBag copyOptionsPanel = new cGridBag();
772
-
773
- copyOptionsPanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints);
774
- colorCB.setToolTipText("Copy color when dropped");
775
- colorCB.addItemListener(this);
776
-
777
- copyOptionsPanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints);
778
- materialCB.setToolTipText("Copy material when dropped");
779
- materialCB.addItemListener(this);
780
-
781
- copyOptionsPanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints);
782
- textureCB.setToolTipText("Copy texture when dropped");
783
- textureCB.addItemListener(this);
784
-
785
- copyOptionsPanel.preferredHeight = 1;
786835 oe.treePanel.add(copyOptionsPanel);
787836 oe.treePanel.Return();
837
+ cGridBag sliderPane = AddSlider(oe.treePanel, "Version", 0, 10, 0);
838
+ versionField = (cNumberSlider)sliderPane.getComponent(1);
839
+ sliderPane.preferredHeight = 1;
788840
789841 // mainPanel.setDividerLocation(0.5); //1.0);
790842 // mainPanel.setResizeWeight(0.5);
....@@ -813,23 +865,43 @@
813865
814866 void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
815867 {
868
+ panel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints);
869
+ colorCB.setToolTipText("Copy color when dropped");
870
+ colorCB.addItemListener(this);
871
+
872
+ panel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints);
873
+ materialCB.setToolTipText("Copy material when dropped");
874
+ materialCB.addItemListener(this);
875
+
876
+ panel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints);
877
+ textureCB.setToolTipText("Copy texture when dropped");
878
+ textureCB.addItemListener(this);
879
+
880
+ panel.Return();
881
+
816882 panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
817883 boxCB.setToolTipText("Display bounding boxes");
818884 boxCB.addItemListener(this);
819885
820886 panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
821
- zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
887
+ zoomBoxCB.setToolTipText("Display only for wheel");
822888 zoomBoxCB.addItemListener(this);
823889
824890 if (true) // Globals.ADVANCED)
825891 {
826
- panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
827
- supportCB.setToolTipText("Enable rigging");
828
- supportCB.addItemListener(this);
892
+// panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
893
+// supportCB.setToolTipText("Enable rigging");
894
+// supportCB.addItemListener(this);
895
+
896
+ panel.add(freezeCB = new cCheckBox("Freeze", Globals.FREEZEONMOVE)); //, constraints);
897
+ freezeCB.setToolTipText("Fast moving camera");
898
+ freezeCB.addItemListener(this);
829899
830900 // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
831901 // localCB.addItemListener(this);
832902
903
+ panel.Return();
904
+
833905 panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints);
834906 crowdCB.setToolTipText("Used for crowds");
835907 crowdCB.addItemListener(this);
....@@ -846,6 +918,8 @@
846918 // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
847919 // speakerMocapCB.addItemListener(this);
848920
921
+ panel.Return();
922
+
849923 if (false)
850924 {
851925 // handled in scripts
....@@ -860,24 +934,39 @@
860934 //constraints.gridy += 1;
861935 panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints);
862936 smoothfocusCB.addItemListener(this);
937
+ panel.Return();
863938 }
864939
865940 //constraints.gridx += 1;
866941 //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints);
867942 // debugCB.addItemListener(this);
868943
944
+ panel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints);
945
+ trackCB.setToolTipText("Enable tracking target");
946
+ trackCB.addItemListener(this);
947
+
869948 panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints);
870
- oeilCB.setToolTipText("Move camera when tracking target");
949
+ oeilCB.setToolTipText("Move camera when tracking");
871950 oeilCB.addItemListener(this);
872951
873952 panel.add(shadowCB = new cCheckBox("Shadow", Globals.COMPUTESHADOWWHENLIVE)); //, constraints);
874
- shadowCB.setToolTipText("Compute shadows when live");
953
+ shadowCB.setToolTipText("When live compute shadows");
875954 shadowCB.addItemListener(this);
876955
877
- panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints);
878
- autosaveCB.setToolTipText("Auto-save on structure change");
879
- autosaveCB.addItemListener(this);
956
+ panel.Return();
957
+ panel.add(toggleTextureCB = new cCheckBox("Textures", CameraPane.textureon)); //, constraints);
958
+ toggleTextureCB.setToolTipText("Load textures");
959
+ toggleTextureCB.addItemListener(this);
960
+
961
+ panel.add(toggleSwitchCB = new cCheckBox("Switch", CameraPane.SWITCH)); //, constraints);
962
+ toggleSwitchCB.setToolTipText("Choose a single item");
963
+ toggleSwitchCB.addItemListener(this);
964
+
965
+ panel.add(autokeepCB = new cCheckBox("Auto-replace", Globals.REPLACEONMAKE)); //, constraints);
966
+ autokeepCB.setToolTipText("On structure change");
967
+ autokeepCB.addItemListener(this);
880968
969
+ panel.Return();
881970 if (Globals.ADVANCED)
882971 {
883972 panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
....@@ -888,10 +977,15 @@
888977 }
889978
890979 cGridBag fill = new cGridBag();
891
-
892980 fill.preferredHeight = 200;
981
+ cGridBag fill2 = new cGridBag();
982
+ fill2.preferredHeight = 200;
983
+ cGridBag fill3 = new cGridBag();
984
+ fill3.preferredHeight = 200;
893985
894986 panel.add(fill);
987
+ panel.add(fill2);
988
+ panel.add(fill3);
895989
896990 }
897991
....@@ -899,7 +993,7 @@
899993 {
900994 cRadio radioButton = new cRadio(obj.name);
901995
902
- // Patch to avoid bug with transparency.
996
+ // June 2019. Patch to avoid bug with transparency.
903997 radioButton.hadMaterial = obj.material != null;
904998 if (!radioButton.hadMaterial)
905999 {
....@@ -936,7 +1030,9 @@
9361030 cCheckBox slowCB;
9371031 cCheckBox boxCB;
9381032 cCheckBox zoomBoxCB;
939
- cToggleButton trackCB;
1033
+ cCheckBox freezeCB;
1034
+ //cToggleButton trackCB;
1035
+ cCheckBox trackCB;
9401036 cCheckBox smoothfocusCB;
9411037 // JCheckBox speakerMocapCB;
9421038 cCheckBox speakerCameraCB;
....@@ -945,7 +1041,7 @@
9451041
9461042 cCheckBox oeilCB;
9471043 cCheckBox shadowCB;
948
- cCheckBox autosaveCB;
1044
+ cCheckBox autokeepCB;
9491045 cCheckBox lookAtCB;
9501046
9511047 // static int COLOR = 1;
....@@ -1053,9 +1149,13 @@
10531149 {
10541150 Globals.COMPUTESHADOWWHENLIVE ^= true;
10551151 }
1056
- else if(e.getSource() == autosaveCB)
1152
+ else if(e.getSource() == freezeCB)
10571153 {
1058
- Globals.SAVEONMAKE ^= true;
1154
+ Globals.FREEZEONMOVE ^= true;
1155
+ }
1156
+ else if(e.getSource() == autokeepCB)
1157
+ {
1158
+ Globals.REPLACEONMAKE ^= true;
10591159 }
10601160 else if(e.getSource() == lookAtCB)
10611161 {
....@@ -1137,8 +1237,6 @@
11371237 }
11381238 }
11391239
1140
- String string = (String) object;
1141
-
11421240 System.out.println("Transfer = " + object + "; drop : " + target);
11431241 // if( object instanceof java.io.File[])
11441242 // {
....@@ -1146,6 +1244,8 @@
11461244 // objEditor.DropFile((java.io.File[]) object, true);
11471245 // return;
11481246 // }
1247
+
1248
+ String string = object.toString();
11491249
11501250 // File path for Mac and Windows
11511251 if (string.charAt(0) == '/' || string.charAt(1) == ':')
....@@ -1191,13 +1291,23 @@
11911291
11921292 assert target == objEditor.jTree;
11931293 TreePath destinationPath = objEditor.jTree.getPathForLocation(objEditor.location.x, objEditor.location.y);
1294
+ Object3D destinationLeaf;
11941295 try {
1195
- Object3D dummy = (Composite) destinationPath.getLastPathComponent();
1296
+ destinationLeaf = (Composite) destinationPath.getLastPathComponent();
11961297 } catch (Exception e) {
11971298 System.out.println("destinationPath : " + destinationPath);
11981299 return;
11991300 }
12001301
1302
+ for (int i=group.selection.size(); --i>=0;)
1303
+ {
1304
+ Object3D child = (Object3D)group.selection.elementAt(i);
1305
+
1306
+ // Cannot move into itself
1307
+ if (child == destinationLeaf)
1308
+ return;
1309
+ }
1310
+
12011311 // june 2019 if (dtde.getDropAction() == DnDConstants.ACTION_MOVE) // ?? LINK)
12021312 // {
12031313 loadClipboard(true);
....@@ -1312,22 +1422,30 @@
13121422 {
13131423 //heightFieldItem = menu.add(new MenuItem("Height Field"));
13141424 //heightFieldItem.addActionListener(this);
1315
- gridItem = menu.add(new MenuItem("Grid"));
1316
- gridItem.addActionListener(this);
1317
- rectoidItem = menu.add(new MenuItem("Box"));
1318
- rectoidItem.addActionListener(this);
1319
- ellipsoidItem = menu.add(new MenuItem("Sphere"));
1320
- ellipsoidItem.addActionListener(this);
1321
- coneItem = menu.add(new MenuItem("Cone"));
1322
- coneItem.addActionListener(this);
1323
- torusItem = menu.add(new MenuItem("Torus"));
1324
- torusItem.addActionListener(this);
1325
- superItem = menu.add(new MenuItem("Superellipsoid"));
1326
- superItem.addActionListener(this);
1425
+// gridItem = menu.add(new MenuItem("Grid"));
1426
+// gridItem.addActionListener(this);
1427
+// rectoidItem = menu.add(new MenuItem("Box"));
1428
+// rectoidItem.addActionListener(this);
1429
+// ellipsoidItem = menu.add(new MenuItem("Sphere"));
1430
+// ellipsoidItem.addActionListener(this);
1431
+// coneItem = menu.add(new MenuItem("Cone"));
1432
+// coneItem.addActionListener(this);
1433
+// torusItem = menu.add(new MenuItem("Torus"));
1434
+// torusItem.addActionListener(this);
1435
+// superItem = menu.add(new MenuItem("Superellipsoid"));
1436
+// superItem.addActionListener(this);
1437
+
1438
+ cameraItem = menu.add(new MenuItem("Camera"));
1439
+ cameraItem.addActionListener(this);
1440
+
1441
+ if (!Globals.ADVANCED)
1442
+ {
13271443 kleinItem = menu.add(new MenuItem("Klein Bottle"));
13281444 kleinItem.addActionListener(this);
1329
- particleItem = menu.add(new MenuItem("Particle system"));
1330
- particleItem.addActionListener(this);
1445
+ }
1446
+
1447
+// particleItem = menu.add(new MenuItem("Particle system"));
1448
+// particleItem.addActionListener(this);
13311449 if (Globals.ADVANCED)
13321450 {
13331451 ragdollItem = menu.add(new MenuItem("Rag Walk"));
....@@ -1353,15 +1471,15 @@
13531471 }
13541472 bezierItem = menu.add(new MenuItem("Bezier Patch"));
13551473 bezierItem.addActionListener(this);
1356
- overlayItem = menu.add(new MenuItem("Overlay"));
1357
- overlayItem.addActionListener(this);
1358
- lightItem = menu.add(new MenuItem("Light"));
1359
- lightItem.addActionListener(this);
1474
+// overlayItem = menu.add(new MenuItem("Overlay"));
1475
+// overlayItem.addActionListener(this);
1476
+// lightItem = menu.add(new MenuItem("Light"));
1477
+// lightItem.addActionListener(this);
13601478 menu.add("-");
13611479 //superLoopItem = menu.add(new MenuItem("Super Loop"));
13621480 //superLoopItem.addActionListener(this);
1363
- loopItem = menu.add(new MenuItem("Loop"));
1364
- loopItem.addActionListener(this);
1481
+// loopItem = menu.add(new MenuItem("Loop"));
1482
+// loopItem.addActionListener(this);
13651483 doubleItem = menu.add(new MenuItem("Fork"));
13661484 doubleItem.addActionListener(this);
13671485 if (Globals.ADVANCED)
....@@ -1377,6 +1495,9 @@
13771495 animationItem.addItemListener(this);
13781496 animationItem.setState(Globals.ANIMATION);
13791497
1498
+ menu.add(archiveItem = new MenuItem("Archive3D..."));
1499
+ archiveItem.addActionListener(this);
1500
+
13801501 menu.add("-");
13811502 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
13821503 parseverticesItem.addActionListener(this);
....@@ -1389,6 +1510,8 @@
13891510 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
13901511 reduce34MorphItem.addActionListener(this);
13911512 menu.add("-");
1513
+ menu.add(memoryItem = new MenuItem("Memory Usage"));
1514
+ memoryItem.addActionListener(this);
13921515 menu.add(computeAOItem = new MenuItem("Compute AO"));
13931516 computeAOItem.addActionListener(this);
13941517
....@@ -1397,8 +1520,6 @@
13971520 mirrorItem = menu.add(new MenuItem("Mirror Poses"));
13981521 mirrorItem.addActionListener(this);
13991522 menu.add("-");
1400
- menu.add(memoryItem = new MenuItem("Memory Usage"));
1401
- memoryItem.addActionListener(this);
14021523 menu.add(analyzeItem = new MenuItem("Analyze"));
14031524 analyzeItem.addActionListener(this);
14041525 menu.add(dumpItem = new MenuItem("Print"));
....@@ -1546,6 +1667,20 @@
15461667
15471668 makeSomething(shadow);
15481669 }
1670
+
1671
+ private void ClearUnpinned()
1672
+ {
1673
+ //for (Object3D obj : listUI)
1674
+ for (int i=listUI.size(); --i>=0;)
1675
+ {
1676
+ Object3D obj = listUI.elementAt(i);
1677
+ if (!obj.pinned)
1678
+ {
1679
+ obj.CloseUI();
1680
+ listUI.remove(i);
1681
+ }
1682
+ }
1683
+ }
15491684
15501685 /**
15511686 * applyExample
....@@ -1790,7 +1925,7 @@
17901925 {
17911926 ScreenFit();
17921927 } else
1793
- if (source == switchItem)
1928
+ if (source == switchViewItem)
17941929 {
17951930 cVector v1 = new cVector();
17961931 cVector v2 = new cVector();
....@@ -2020,30 +2155,30 @@
20202155
20212156 group(g);
20222157 } else
2023
- if (source == loopItem)
2158
+ if (source == loopItem || source == loopButton)
20242159 {
20252160 Composite csg = new GroupLeaf();
20262161 csg.count = 5;
20272162 group(csg);
2028
- Composite child = new cGroup();
2163
+ Composite child = new cGroup("Branch");
20292164 csg.addChild(child);
20302165 child.addChild(csg);
20312166 } else
20322167 if (source == doubleItem)
20332168 {
2034
- Composite csg = new GroupLeaf();
2169
+ Composite csg = new GroupLeaf("Fork");
20352170 csg.count = 5;
20362171 group(csg);
2037
- Composite child = new cGroup();
2172
+ Composite child = new cGroup("Branch A");
20382173 csg.addChild(child);
20392174 child.addChild(csg);
2040
- child = new cGroup();
2175
+ child = new cGroup("Branch B");
20412176 csg.addChild(child);
20422177 child.addChild(csg);
20432178 } else
20442179 if (source == tripleItem)
20452180 {
2046
- Composite csg = new GroupLeaf();
2181
+ Composite csg = new GroupLeaf("Trident");
20472182 csg.count = 4;
20482183 group(csg);
20492184 Composite child = new cGroup();
....@@ -2107,15 +2242,31 @@
21072242 } else
21082243 if (source == undoButton)
21092244 {
2245
+ // Go to previous version
2246
+ //if (!Undo())
2247
+ //java.awt.Toolkit.getDefaultToolkit().beep();
21102248 Undo();
2249
+ } else
2250
+ if (source == restoreButton)
2251
+ {
2252
+ // Restore current version
2253
+ Restore();
2254
+ } else
2255
+ if (source == replaceButton)
2256
+ {
2257
+ // Overwrite current version
2258
+ Replace();
21112259 } else
21122260 if (source == redoButton)
21132261 {
2262
+ // Go to next version
21142263 Redo();
21152264 } else
21162265 if (source == saveButton)
21172266 {
2118
- Save();
2267
+ // Save a new version
2268
+ if (!Save(true))
2269
+ java.awt.Toolkit.getDefaultToolkit().beep();
21192270 } else
21202271 if (source == oneStepButton)
21212272 {
....@@ -2124,17 +2275,14 @@
21242275 } else
21252276 if (source == screenfitButton)
21262277 {
2127
- //Reload(lastConverter, lastFilename, true);
21282278 ScreenFit();
21292279 } else
21302280 if (source == screenfitpointButton)
21312281 {
2132
- //Reload(lastConverter, lastFilename, true);
21332282 ScreenFitPoint();
21342283 } else
21352284 if (source == snapobjectButton)
21362285 {
2137
- //Reload(lastConverter, lastFilename, true);
21382286 SnapObject();
21392287 } else
21402288 // if (event.getSource() == recompileButton)
....@@ -2510,9 +2658,9 @@
25102658 {
25112659 ClearSelection(true);
25122660 } else
2513
- if (source == grabItem)
2661
+ if (source == grabItem || source == groupButton)
25142662 {
2515
- group(new cGroup(), true);
2663
+ group(new cGroup(), false); // true);
25162664 } else
25172665 if (source == hideItem)
25182666 {
....@@ -2530,11 +2678,11 @@
25302678 {
25312679 makeSomething(new Camera());
25322680 } else
2533
- if (source == compositeItem)
2681
+ if (source == compositeItem || source == compositeButton)
25342682 {
25352683 group(new Composite());
25362684 } else
2537
- if (source == randomItem)
2685
+ if (source == switchItem || source == switchButton)
25382686 {
25392687 RandomNode random = new RandomNode();
25402688 group(random);
....@@ -2636,7 +2784,7 @@
26362784 {
26372785 group(new cLinker());
26382786 } else
2639
- if (source == textureItem)
2787
+ if (source == textureItem || source == textureButton)
26402788 {
26412789 group(new TextureNode());
26422790 } else
....@@ -2658,15 +2806,28 @@
26582806 } else
26592807 if (source == ungroupItem || source == ungroupButton)
26602808 {
2661
- //ungroup();
2809
+ boolean hasRoot = false;
2810
+
26622811 for (int i=0; i<group.selection.size(); i++)
26632812 {
2664
- Ungroup(group.selection.get(i));
2813
+ if (group.selection.get(i) == group)
2814
+ {
2815
+ hasRoot = true;
2816
+ break;
2817
+ }
26652818 }
26662819
2667
- ClearSelection(false);
2668
-
2669
- refreshContents();
2820
+ if (!hasRoot)
2821
+ {
2822
+ for (int i=0; i<group.selection.size(); i++)
2823
+ {
2824
+ Ungroup(group.selection.get(i));
2825
+ }
2826
+
2827
+ ClearSelection(false);
2828
+
2829
+ refreshContents();
2830
+ }
26702831 } else
26712832 if (source == genUVItem)
26722833 {
....@@ -3258,6 +3419,12 @@
32583419 } else
32593420 if (source == editItem || source == editButton)
32603421 {
3422
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
3423
+ {
3424
+ Object3D child = (Object3D)e.nextElement();
3425
+ child.pinned = true;
3426
+ }
3427
+
32613428 EditSelection(false);
32623429 } else
32633430 if (source == uneditButton)
....@@ -3267,6 +3434,7 @@
32673434 Object3D child = (Object3D)e.nextElement();
32683435 if(child.editWindow != null)
32693436 objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
3437
+ child.pinned = false;
32703438 child.CloseUI();
32713439 listUI.remove(child);
32723440
....@@ -3283,6 +3451,7 @@
32833451 //copy.ClearUI();
32843452 for (Object3D obj : listUI)
32853453 {
3454
+ obj.pinned = false;
32863455 obj.CloseUI();
32873456 }
32883457 listUI.clear();
....@@ -3292,7 +3461,7 @@
32923461 {
32933462 assert(copy == group);
32943463
3295
- objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
3464
+ //objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
32963465
32973466 for (Object3D obj : listUI)
32983467 {
....@@ -3341,6 +3510,9 @@
33413510 }
33423511
33433512 copy = group;
3513
+
3514
+ SetUndoStates();
3515
+
33443516 //Globals.theRenderer.object = group;
33453517 if(!useclient)
33463518 {
....@@ -3367,6 +3539,11 @@
33673539 currentLayout = sevenButton;
33683540 */
33693541 radio.layout.doClick();
3542
+
3543
+ ClearUnpinned();
3544
+ SetPinStates(group.selection.size() > 0);
3545
+ if (group.selection.size() == 1)
3546
+ EditSelection(false);
33703547 keepparent = group.parent;
33713548 // PARENT = NULL or not???
33723549 //group.parent = null; // ROOT
....@@ -3380,7 +3557,7 @@
33803557 cameraView.ProtectCamera();
33813558 cameraView.repaint();
33823559 return;
3383
- } else if (event.getSource() == revertCameraItem)
3560
+ } else if (event.getSource() == restoreCameraItem || event.getSource() == restoreCameraButton)
33843561 {
33853562 cameraView.RevertCamera();
33863563 cameraView.repaint();
....@@ -4434,10 +4611,6 @@
44344611 // }
44354612 // }
44364613
4437
- static boolean allparams = true;
4438
-
4439
- static Vector<Object3D> listUI = new Vector<Object3D>();
4440
-
44414614 void EditSelection(boolean newWindow)
44424615 {
44434616 // aConstraints.gridy = 0;
....@@ -4530,7 +4703,8 @@
45304703 //new Exception().printStackTrace();
45314704
45324705 freezemodel = true;
4533
-
4706
+ ClearUnpinned();
4707
+
45344708 /**/
45354709 //switch (event.id)
45364710 {
....@@ -4563,7 +4737,7 @@
45634737 if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
45644738 // a camera
45654739 {
4566
- if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera())
4740
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crash the camera because of invalid lightspace
45674741 {
45684742 CameraPane.camerachangeframe = 0; // don't refuse it
45694743 Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
....@@ -4572,6 +4746,13 @@
45724746 // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
45734747 }
45744748
4749
+ if (tps != null && tps.length == 1)
4750
+ {
4751
+ EditSelection(false);
4752
+ }
4753
+
4754
+ SetPinStates(tps != null && tps.length > 0);
4755
+
45754756 refreshContents();
45764757 //return true;
45774758 }
....@@ -4581,9 +4762,18 @@
45814762 freezemodel = false;
45824763 }
45834764
4765
+ void SetPinStates(boolean enabled)
4766
+ {
4767
+ editButton.setEnabled(enabled);
4768
+ uneditButton.setEnabled(enabled);
4769
+ unselectButton.setEnabled(enabled);
4770
+ flashSelectionButton.setEnabled(enabled);
4771
+ }
4772
+
45844773 void refreshContents(boolean cp)
45854774 {
4586
- if (!Globals.MOUSEDRAGGED)
4775
+ if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Info"))
4776
+ if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
45874777 {
45884778 objEditor.ClearInfo(); // .GetMaterial());
45894779
....@@ -4682,8 +4872,8 @@
46824872
46834873 if (cut)
46844874 {
4685
- if (Globals.SAVEONMAKE)
4686
- Save();
4875
+// if (Globals.SAVEONMAKE) // Moved to the clipboard, no need to save.
4876
+// Save();
46874877 //int indices[] = jList.getSelectedIndices();
46884878 //for (int i = indices.length - 1; i >= 0; i--)
46894879 //jList.remove(indices[i]);
....@@ -4786,6 +4976,10 @@
47864976
47874977 void paste(boolean expand)
47884978 {
4979
+ if (Globals.REPLACEONMAKE)
4980
+ Save();
4981
+ boolean keep = Globals.REPLACEONMAKE;
4982
+ Globals.REPLACEONMAKE = false;
47894983 // if (GrafreeD.clipboard == null)
47904984 // return;
47914985 boolean first = true;
....@@ -4845,6 +5039,7 @@
48455039 Grafreed.clipboard.get(0).parent = keepparent;
48465040 }
48475041
5042
+ Globals.REPLACEONMAKE = keep;
48485043 ResetModel();
48495044 refreshContents();
48505045 }
....@@ -4980,6 +5175,10 @@
49805175
49815176 void group(Object3D csg, boolean grab)
49825177 {
5178
+ if (Globals.REPLACEONMAKE)
5179
+ Save();
5180
+ boolean keep = Globals.REPLACEONMAKE;
5181
+ Globals.REPLACEONMAKE = false;
49835182 if (//false) // why??
49845183 !group.selection.isEmpty())
49855184 {
....@@ -5093,10 +5292,15 @@
50935292 //node.add(csg);
50945293 //makeSomething(node);
50955294 makeSomething(csg);
5295
+ Globals.REPLACEONMAKE = keep;
50965296 }
50975297
50985298 void Ungroup(Object3D g)
50995299 {
5300
+ if (Globals.REPLACEONMAKE)
5301
+ Save();
5302
+ boolean keep = Globals.REPLACEONMAKE;
5303
+ Globals.REPLACEONMAKE = false;
51005304 if (g instanceof HiddenObject)
51015305 {
51025306 HiddenObject h = (HiddenObject) g;
....@@ -5113,6 +5317,7 @@
51135317 objEditor.makeSomething(g.get(i), false);
51145318 }
51155319 }
5320
+ Globals.REPLACEONMAKE = keep;
51165321 }
51175322
51185323 void ungroup()
....@@ -5401,17 +5606,17 @@
54015606 cButton clearpanelButton;
54025607 cButton unselectButton;
54035608
5404
- cButton minButton;
5405
- cButton maxButton;
5406
- cButton fullButton;
5407
- cButton undoButton;
5408
- cButton redoButton;
5609
+ cButton restoreCameraButton;
5610
+
54095611 cButton saveButton;
54105612 cButton oneStepButton;
54115613
54125614 cButton groupButton;
54135615 cButton ungroupButton;
54145616 cButton compositeButton;
5617
+ cButton switchButton;
5618
+ cButton loopButton;
5619
+ cButton textureButton;
54155620
54165621 cButton gridButton;
54175622 cButton boxButton;
....@@ -5444,7 +5649,7 @@
54445649 //JTree jTree;
54455650 private MenuItem lookAtItem;
54465651 private MenuItem lookFromItem;
5447
- private MenuItem switchItem;
5652
+ private MenuItem switchViewItem;
54485653 private MenuItem cutItem;
54495654 private MenuItem undoItem;
54505655 private MenuItem redoItem;
....@@ -5536,7 +5741,7 @@
55365741 private MenuItem frontItem;
55375742 private MenuItem cameraItem;
55385743 private MenuItem compositeItem;
5539
- private MenuItem randomItem;
5744
+ private MenuItem switchItem;
55405745 private MenuItem physicsItem;
55415746 private MenuItem frameselectorItem;
55425747 private MenuItem scriptNodeItem;
....@@ -5610,5 +5815,5 @@
56105815
56115816 Menu cameraMenu;
56125817 MenuItem editCameraItem;
5613
- MenuItem revertCameraItem;
5818
+ MenuItem restoreCameraItem;
56145819 }