Normand Briere
2019-08-15 7f97054d681518416a4ee1c1548ad42cfb489a8f
GroupEditor.java
....@@ -31,7 +31,7 @@
3131 final String path = "cubemaps/" + f + "-skyboxes/" + s;
3232 row.add(skyboxButton = GetButton(path + "/preview.jpg", !Grafreed.NIMBUSLAF));
3333 //row.add(skyboxButton = GetButton(path + "/negx.jpg", !Grafreed.NIMBUSLAF));
34
- skyboxButton.setToolTipText(s);
34
+ skyboxButton.setToolTipText(s.equals("") ? "No background" : s);
3535 skyboxButton.addActionListener(new ActionListener()
3636 {
3737 @Override
....@@ -42,12 +42,12 @@
4242 });
4343 }
4444
45
- public void AddTextureButton(String f, final String t, cGridBag row)
45
+ public void AddTextureButton(String f, String c, final String t, int count, cGridBag row)
4646 {
4747 cButton textureButton;
48
- final String path = "textures/" + f + "/"; // + t;
48
+ final String path = "textures/" + f + "/" + c + "/"; // + t;
4949 row.add(textureButton = GetButton(path + "icons/" + t, !Grafreed.NIMBUSLAF));
50
- textureButton.setToolTipText(f + "s");
50
+ textureButton.setToolTipText(c + count);
5151 textureButton.addActionListener(new ActionListener()
5252 {
5353 @Override
....@@ -73,7 +73,7 @@
7373 cGridBag row5 = new cGridBag();
7474 cGridBag row6 = new cGridBag();
7575
76
- AddSkyboxButton("default", "rgb", row0);
76
+ AddSkyboxButton("default", "", row0);
7777 //AddSkyboxButton("default", "cornell", row0);
7878 AddSkyboxButton("penguins", "dust", row0);
7979 AddSkyboxButton("penguins", "tropic", row0);
....@@ -330,10 +330,19 @@
330330
331331 public void ChangeSkybox(String skybox)
332332 {
333
- //cameraView.envyoff = false;
334
- group.skyboxname = skybox;
335
- group.skyboxext = "jpg";
336
- cameraView.repaint();
333
+ if (skybox.endsWith("/"))
334
+ {
335
+ group.skyboxname = null;
336
+ group.skyboxext = null;
337
+ cameraView.repaint();
338
+ }
339
+ else
340
+ {
341
+ //cameraView.envyoff = false;
342
+ group.skyboxname = skybox;
343
+ group.skyboxext = "jpg";
344
+ cameraView.repaint();
345
+ }
337346 }
338347
339348 public void CreateSkyboxPanel(cGridBag skyboxPanel)
....@@ -350,7 +359,23 @@
350359
351360 public void ChangeTexture(String texture)
352361 {
353
- cameraView.repaint();
362
+ for (int i=0; i<group.selection.size(); i++)
363
+ {
364
+ Object3D obj = group.selection.get(i);
365
+ obj.SetPigmentTexture("@" + texture);
366
+ }
367
+
368
+ refreshContents();
369
+ }
370
+
371
+ public void Show3DView()
372
+ {
373
+ // bug
374
+ //gridPanel.setDividerLocation(1.0);
375
+ //bigPanel.setDividerLocation(0.0);
376
+ bigThree.ClearUI();
377
+ bigThree.add(centralPanel);
378
+ bigThree.FlushUI();
354379 }
355380
356381 //ObjEditor objEditor;
....@@ -394,6 +419,8 @@
394419 {
395420 copy.versionlist = new Object3D[100];
396421 copy.versionindex = -1;
422
+
423
+ Save(true);
397424 }
398425
399426 if(ui)
....@@ -513,32 +540,37 @@
513540 // menu.add("-");
514541 duplicateItem = oe.jTree.popup.add(new JMenuItem("Duplicate"));
515542 duplicateItem.addActionListener(this);
516
- cloneItem = menu.add(new MenuItem("Clone"));
543
+
544
+ cloneItem = oe.jTree.popup.add(new JMenuItem("Clone"));
517545 cloneItem.addActionListener(this);
518
- if (Globals.ADVANCED)
546
+ //if (Globals.ADVANCED)
519547 {
520548 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
521549 cloneSupportItem.addActionListener(this);
522550 }
551
+ oe.jTree.popup.addSeparator();
523552 menu.add("-");
524
- cutItem = menu.add(new MenuItem("Cut"));
553
+ cutItem = oe.jTree.popup.add(new JMenuItem("Cut"));
525554 cutItem.addActionListener(this);
526
- copyItem = menu.add(new MenuItem("Copy"));
555
+ copyItem = oe.jTree.popup.add(new JMenuItem("Copy"));
527556 copyItem.addActionListener(this);
528557 pasteItem = menu.add(new MenuItem("Paste"));
529558 pasteItem.addActionListener(this);
530559
531
- menu.add("-");
532
- pasteIntoItem = menu.add(new MenuItem("Paste into"));
560
+ oe.jTree.popup.addSeparator();
561
+ //menu.add("-");
562
+ pasteIntoItem = oe.jTree.popup.add(new JMenuItem("Paste into"));
533563 pasteIntoItem.addActionListener(this);
534
- pasteLinkItem = menu.add(new MenuItem("Paste link"));
564
+ pasteLinkItem = oe.jTree.popup.add(new JMenuItem("Paste link"));
535565 pasteLinkItem.addActionListener(this);
536
- pasteCloneItem = menu.add(new MenuItem("Paste clone"));
566
+ pasteCloneItem = oe.jTree.popup.add(new JMenuItem("Paste clone"));
537567 pasteCloneItem.addActionListener(this);
538
-// pasteExpandItem = menu.add(new MenuItem("Paste expand"));
568
+// CRASH pasteExpandItem = oe.jTree.popup.add(new JMenuItem("Paste expand"));
539569 // pasteExpandItem.addActionListener(this);
540
- menu.add("-");
541
- deleteItem = menu.add(new MenuItem("Delete"));
570
+ //menu.add("-");
571
+ oe.jTree.popup.addSeparator();
572
+
573
+ deleteItem = oe.jTree.popup.add(new JMenuItem("Delete"));
542574 deleteItem.addActionListener(this);
543575
544576 if (Globals.ADVANCED)
....@@ -625,11 +657,9 @@
625657 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
626658 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
627659 //cameraMenu.add(switchViewItem = new MenuItem("Reverse View"));
628
- editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf"));
629660 oe.cameraMenu.add("-");
630661 openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy..."));
631662 openWindowItem.addActionListener(this);
632
- editLeafItem.addActionListener(this);
633663 lookAtItem.addActionListener(this);
634664 //lookFromItem.addActinoListener(this);
635665 //switchViewItem.addActionListener(this);
....@@ -691,7 +721,7 @@
691721 hideItem = menu.add(new MenuItem("Hidden Group"));
692722 hideItem.addActionListener(this);
693723 }
694
- ungroupItem = menu.add(new MenuItem("Ungroup"));
724
+ ungroupItem = oe.jTree.popup.add(new JMenuItem("Ungroup"));
695725 ungroupItem.addActionListener(this);
696726
697727 // menu.add("-");
....@@ -877,6 +907,9 @@
877907 shareGeometriesItem.addActionListener(this);
878908 mergeGeometriesItem = menu.add(new MenuItem("Merge Geometries"));
879909 mergeGeometriesItem.addActionListener(this);
910
+ menu.add("-");
911
+ editLeafItem = menu.add(new MenuItem("Edit leaf..."));
912
+ editLeafItem.addActionListener(this);
880913 if (Globals.ADVANCED)
881914 {
882915 // Pretty much the same as duplicate and clone.
....@@ -900,6 +933,7 @@
900933 int tabcount = 0;
901934 int colcount = 0;
902935 int rowcount = 0;
936
+ int texturecount = 0;
903937
904938 int columns = 5;
905939 int rows = 7;
....@@ -909,26 +943,31 @@
909943 for (int i = 0; i < path.length; i++)
910944 System.out.print(path[i] + "/");
911945 System.out.println();
912
- if (rowcount == 0)
946
+
947
+ if (//rowcount == 0 ||
948
+ path.length == 1)
913949 {
914950 currenttab = new cGridBag();
915951 added = false;
916
- String tabname = String.valueOf((char)('A'+tabcount));
952
+ String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
917953 currenttab.setName(tabname);
918954 rowcount = 1;
955
+ colcount = 0;
956
+ texturecount = 0;
919957 }
920958
921
- if (path.length > 1 && path[1].toLowerCase().endsWith(".jpg"))
959
+ if (path.length > 2 && path[2].toLowerCase().endsWith(".jpg"))
922960 {
923961 if (!added)
924962 {
925963 added = true;
926964 resourcecontainer.add(currenttab);
927
- String tabname = String.valueOf((char)('A'+tabcount));
965
+ String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
928966 resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
929967 }
930968
931
- AddTextureButton(path[0], path[1], currenttab);
969
+ AddTextureButton(path[0], path[1], path[2], texturecount++, currenttab);
970
+
932971 if (++colcount >= columns)
933972 {
934973 colcount = 0;
....@@ -949,7 +988,7 @@
949988
950989 void CreateTexturePanel(cGridBag container)
951990 {
952
- resourcecontainer = new JTabbedPane();
991
+ resourcecontainer = new JTabbedPane(JTabbedPane.LEFT);
953992 container.add(resourcecontainer);
954993
955994 Grafreed.ParseResources("textures", this);
....@@ -972,11 +1011,6 @@
9721011 //new Exception().printStackTrace();
9731012
9741013 oe.radioPanel = new JPanel(new GridBagLayout());
975
- oe.aConstraints.weightx = 1;
976
- oe.aConstraints.weighty = 0;
977
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
978
- oe.aConstraints.gridwidth = 100;
979
- oe.aConstraints.gridheight = 1;
9801014 // oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
9811015
9821016 oe.buttonGroup = new ButtonGroup();
....@@ -1009,10 +1043,49 @@
10091043
10101044 if (Globals.ADVANCED)
10111045 {
1012
- oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1013
- maxButton.setToolTipText("Maximize window");
1014
- maxButton.addActionListener(this);
1046
+// oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1047
+// maxButton.setToolTipText("Maximize window");
1048
+// maxButton.addActionListener(this);
10151049 }
1050
+
1051
+ cButton gcButton;
1052
+
1053
+// oe.toolbarPanel.add(gcButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1054
+// gcButton.setToolTipText("Garbage collect");
1055
+// gcButton.addActionListener(new ActionListener()
1056
+// {
1057
+// public void actionPerformed(ActionEvent e)
1058
+// {
1059
+// System.gc();
1060
+// }
1061
+// });
1062
+
1063
+ oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1064
+ collapseButton.setToolTipText("Collapse toolbar");
1065
+ collapseButton.addActionListener(this);
1066
+
1067
+ oe.toolbarPanel.add(maximize3DButton = GetButton("", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1068
+ maximize3DButton.setToolTipText("Maximize 3D view");
1069
+ maximize3DButton.addActionListener(this);
1070
+
1071
+ oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1072
+ twoButton.setToolTipText("Show 3D view only");
1073
+ twoButton.addActionListener(this);
1074
+ this.fullscreenLayout = twoButton;
1075
+
1076
+ oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1077
+ threeButton.setToolTipText("Show controls and 3D view");
1078
+ threeButton.addActionListener(this);
1079
+ if (Globals.ADVANCED)
1080
+ {
1081
+ oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1082
+ sixButton.setToolTipText("Show 3D view and controls");
1083
+ sixButton.addActionListener(this);
1084
+ }
1085
+// oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1086
+// sevenButton.setToolTipText("3-column layout");
1087
+// sevenButton.addActionListener(this);
1088
+ //
10161089
10171090 oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
10181091 fullButton.setToolTipText("Full-screen window");
....@@ -1057,14 +1130,14 @@
10571130 nextVersionButton.addActionListener(this);
10581131 nextVersionButton.setEnabled(false);
10591132
1060
- oe.toolbarPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints);
1061
- liveCB.setToolTipText("Enable animation");
1062
- liveCB.addItemListener(this);
1063
-
10641133 oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
10651134 oneStepButton.setToolTipText("Animate one step forward");
10661135 oneStepButton.addActionListener(this);
10671136
1137
+ oe.toolbarPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints);
1138
+ liveCB.setToolTipText("Enable animation");
1139
+ liveCB.addItemListener(this);
1140
+
10681141 oe.toolbarPanel.add(fastCB = GetToggleButton("icons/runfast.png", CameraPane.FAST)); //, constraints);
10691142 fastCB.setToolTipText("Fast mode");
10701143 fastCB.addItemListener(this);
....@@ -1091,21 +1164,6 @@
10911164
10921165 //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
10931166
1094
- oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1095
- twoButton.setToolTipText("Show 3D view only");
1096
- twoButton.addActionListener(this);
1097
- this.fullscreenLayout = twoButton;
1098
-
1099
- oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1100
- threeButton.setToolTipText("Show controls and 3D view");
1101
- threeButton.addActionListener(this);
1102
- oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1103
- sixButton.setToolTipText("Show 3D view and controls");
1104
- sixButton.addActionListener(this);
1105
-// oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1106
-// sevenButton.setToolTipText("3-column layout");
1107
-// sevenButton.addActionListener(this);
1108
- //
11091167
11101168 oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
11111169 rootButton.setToolTipText("Open selection in new tab");
....@@ -1121,7 +1179,7 @@
11211179
11221180 // INSERT
11231181 row1.add(gridButton = GetButton("icons/grid.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1124
- gridButton.setToolTipText("Create grid");
1182
+ gridButton.setToolTipText("Create ground");
11251183 gridButton.addActionListener(this);
11261184
11271185 row1.add(boxButton = GetButton("icons/box.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -1413,6 +1471,14 @@
14131471
14141472 void EditObject(Object3D obj)
14151473 {
1474
+ assert(obj instanceof Composite);
1475
+
1476
+// if (obj.versionlist == null)
1477
+// {
1478
+// obj.versionlist = new Object3D[100];
1479
+// obj.versionindex = -1;
1480
+// }
1481
+
14161482 cRadio radioButton = new cRadio(obj.name);
14171483
14181484 // June 2019. Patch to avoid bug with transparency.
....@@ -1803,7 +1869,12 @@
18031869 TreePath path;
18041870
18051871 public TransferableTreePath(TreePath tp) {
1806
- path = tp;
1872
+ Object[] objs = new Object[tp.getPathCount()];
1873
+ for (int i=0; i<objs.length; i++)
1874
+ {
1875
+ objs[i] = ((Object3D)tp.getPathComponent(i)).GetUUID();
1876
+ }
1877
+ path = new TreePath(objs);
18071878 }
18081879
18091880 public synchronized DataFlavor[] getTransferDataFlavors() {
....@@ -2614,27 +2685,35 @@
26142685 } else
26152686 if (source == loopItem || source == loopButton)
26162687 {
2688
+ if (!group.selection.isEmpty())
2689
+ {
26172690 Composite csg = new GroupLeaf();
26182691 csg.count = 5;
2619
- group(csg);
26202692 Composite child = new cGroup("Branch");
26212693 csg.addChild(child);
26222694 child.addChild(csg);
2695
+ group(csg);
2696
+ }
26232697 } else
26242698 if (source == doubleItem)
26252699 {
2700
+ if (!group.selection.isEmpty())
2701
+ {
26262702 Composite csg = new GroupLeaf("Fork");
26272703 csg.count = 5;
2628
- group(csg);
26292704 Composite child = new cGroup("Branch A");
26302705 csg.addChild(child);
26312706 child.addChild(csg);
26322707 child = new cGroup("Branch B");
26332708 csg.addChild(child);
26342709 child.addChild(csg);
2710
+ group(csg);
2711
+ }
26352712 } else
26362713 if (source == tripleItem)
26372714 {
2715
+ if (!group.selection.isEmpty())
2716
+ {
26382717 Composite csg = new GroupLeaf("Trident");
26392718 csg.count = 4;
26402719 group(csg);
....@@ -2647,6 +2726,7 @@
26472726 child = new cGroup();
26482727 csg.addChild(child);
26492728 child.addChild(csg);
2729
+ }
26502730 } else
26512731 if (source == computeAOItem)
26522732 {
....@@ -2696,6 +2776,18 @@
26962776 if (source == fullButton)
26972777 {
26982778 ToggleFullScreen();
2779
+ } else
2780
+ if (source == collapseButton)
2781
+ {
2782
+ this.expandedLayout = radio.layout;
2783
+ CollapseToolbar();
2784
+ } else
2785
+ if (source == maximize3DButton)
2786
+ {
2787
+ this.expandedLayout = radio.layout;
2788
+ radio.layout = twoButton;
2789
+ Show3DView();
2790
+ CollapseToolbar();
26992791 } else
27002792 if (source == previousVersionButton)
27012793 {
....@@ -3270,22 +3362,34 @@
32703362 } else
32713363 if (source == ungroupItem || source == ungroupButton)
32723364 {
3273
- boolean hasRoot = false;
3365
+ boolean canUngroup = true;
32743366
32753367 for (int i=0; i<group.selection.size(); i++)
32763368 {
3277
- if (group.selection.get(i) == group)
3369
+ Object3D selectedItem = group.selection.get(i);
3370
+
3371
+ if (selectedItem.Size() == 0)
32783372 {
3279
- hasRoot = true;
3373
+ // Cannot ungroup leaves
3374
+ canUngroup = false;
3375
+ break;
3376
+ }
3377
+
3378
+ if (selectedItem == group)
3379
+ {
3380
+ // Cannot ungroup root
3381
+ canUngroup = false;
32803382 break;
32813383 }
32823384 }
32833385
3284
- if (!hasRoot)
3386
+ if (canUngroup)
32853387 {
32863388 for (int i=0; i<group.selection.size(); i++)
32873389 {
3288
- Ungroup(group.selection.get(i));
3390
+ Object3D selectedItem = group.selection.get(i);
3391
+
3392
+ Ungroup(selectedItem);
32893393 }
32903394
32913395 ClearSelection(false);
....@@ -3648,38 +3752,7 @@
36483752 if (CameraPane.FULLSCREEN)
36493753 fullscreenLayout = radio.layout;
36503754
3651
- // bug
3652
- //gridPanel.setDividerLocation(1.0);
3653
- //bigPanel.setDividerLocation(0.0);
3654
-// bigThree.remove(scenePanel);
3655
-// bigThree.remove(centralPanel);
3656
-// bigThree.remove(XYZPanel);
3657
-// aWindowConstraints.gridx = 0;
3658
-// aWindowConstraints.gridy = 0;
3659
-// aWindowConstraints.gridwidth = 1;
3660
-// // aConstraints.gridheight = 3;
3661
-// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
3662
-// aWindowConstraints.weightx = 0;
3663
-// aWindowConstraints.weighty = 1;
3664
-// //bigThree.add(jtp, aWindowConstraints);
3665
-// aWindowConstraints.weightx = 1;
3666
-// aWindowConstraints.gridwidth = 3;
3667
-// // aConstraints.gridheight = 3;
3668
-// aWindowConstraints.gridx = 1;
3669
-// aWindowConstraints.fill = GridBagConstraints.BOTH;
3670
-// bigThree.add(centralPanel, aWindowConstraints);
3671
-// aWindowConstraints.weightx = 0;
3672
-// aWindowConstraints.gridx = 4;
3673
-// aWindowConstraints.gridwidth = 1;
3674
-// // aConstraints.gridheight = 3;
3675
-// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
3676
-// //bigThree.add(XYZPanel, aWindowConstraints);
3677
-// scenePanel.setVisible(false);
3678
-// centralPanel.setVisible(true);
3679
-// XYZPanel.setVisible(false);
3680
- bigThree.ClearUI();
3681
- bigThree.add(centralPanel);
3682
- bigThree.FlushUI();
3755
+ Show3DView();
36833756
36843757 cameraView.requestFocusInWindow();
36853758
....@@ -3865,6 +3938,7 @@
38653938 } else
38663939 if (source == rootButton)
38673940 {
3941
+ Replace();
38683942 Object3D obj;
38693943 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
38703944 {
....@@ -4001,8 +4075,6 @@
40014075
40024076 copy = group;
40034077
4004
- SetUndoStates();
4005
-
40064078 //Globals.theRenderer.object = group;
40074079 if(!useclient)
40084080 {
....@@ -4030,6 +4102,18 @@
40304102 */
40314103 radio.layout.doClick();
40324104
4105
+ assert(copy instanceof Composite);
4106
+
4107
+ if (copy.versionlist == null)
4108
+ {
4109
+ copy.versionlist = new Object3D[100];
4110
+ copy.versionindex = -1;
4111
+
4112
+ Save(true);
4113
+ }
4114
+
4115
+ SetVersionStates();
4116
+
40334117 ClearUnpinned();
40344118
40354119 //Grafreed.Assert(group != null);
....@@ -5264,6 +5348,20 @@
52645348 flashSelectionButton.setEnabled(enabled);
52655349
52665350 clearPanelButton.setEnabled(!listUI.isEmpty());
5351
+
5352
+ boolean allComposites = true;
5353
+
5354
+ if (group.selection != null)
5355
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
5356
+ {
5357
+ if (!(e.nextElement() instanceof Composite))
5358
+ {
5359
+ allComposites = false;
5360
+ break;
5361
+ }
5362
+ }
5363
+
5364
+ rootButton.setEnabled(allComposites);
52675365 }
52685366
52695367 void refreshContents(boolean cp)
....@@ -5278,7 +5376,7 @@
52785376 Object3D child = (Object3D) group.selection.get(i);
52795377
52805378 objEditor.AddInfo(child, this, true);
5281
- System.err.println("info : " + child.GetPath());
5379
+// System.err.println("info : " + child.GetPath());
52825380 }
52835381
52845382 objEditor.SetText(); // jan 2014
....@@ -6161,11 +6259,11 @@
61616259 private MenuItem lookAtItem;
61626260 private MenuItem lookFromItem;
61636261 private MenuItem switchViewItem;
6164
- private MenuItem cutItem;
6262
+ private JMenuItem cutItem;
61656263 private MenuItem undoItem;
61666264 private MenuItem redoItem;
61676265 private JMenuItem duplicateItem;
6168
- private MenuItem cloneItem;
6266
+ private JMenuItem cloneItem;
61696267 private MenuItem cloneSupportItem;
61706268 private MenuItem overwriteGeoItem;
61716269 private MenuItem overwriteMatItem;
....@@ -6186,13 +6284,13 @@
61866284 private MenuItem cloneGeometriesItem;
61876285 private MenuItem shareGeometriesItem;
61886286 private MenuItem mergeGeometriesItem;
6189
- private MenuItem copyItem;
6287
+ private JMenuItem copyItem;
61906288 private MenuItem pasteItem;
6191
- private MenuItem pasteIntoItem;
6192
- private MenuItem pasteLinkItem;
6193
- private MenuItem pasteCloneItem;
6194
- private MenuItem pasteExpandItem;
6195
- private MenuItem deleteItem;
6289
+ private JMenuItem pasteIntoItem;
6290
+ private JMenuItem pasteLinkItem;
6291
+ private JMenuItem pasteCloneItem;
6292
+ private JMenuItem pasteExpandItem;
6293
+ private JMenuItem deleteItem;
61966294 private MenuItem clearAllItem;
61976295 private MenuItem genUVItem;
61986296 private MenuItem genNormalsMESHItem;
....@@ -6260,7 +6358,7 @@
62606358 private MenuItem switchTransfoItem;
62616359 private MenuItem morphItem;
62626360 private MenuItem linkerItem;
6263
- private MenuItem ungroupItem;
6361
+ private JMenuItem ungroupItem;
62646362 private MenuItem editItem;
62656363 private MenuItem openWindowItem;
62666364 private MenuItem editLeafItem;