Normand Briere
2019-08-26 6266c8a4b2485b29a7d5bcb217460d7aad3e1c4a
GroupEditor.java
....@@ -29,9 +29,9 @@
2929 {
3030 cButton skyboxButton;
3131 final String path = "cubemaps/" + f + "-skyboxes/" + s;
32
- row.add(skyboxButton = GetButton(path + "/preview.jpg", !Grafreed.NIMBUSLAF));
32
+ row.add(skyboxButton = GetButton(path + "/preview.jpg", !Globals.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
....@@ -46,7 +46,7 @@
4646 {
4747 cButton textureButton;
4848 final String path = "textures/" + f + "/" + c + "/"; // + t;
49
- row.add(textureButton = GetButton(path + "icons/" + t, !Grafreed.NIMBUSLAF));
49
+ row.add(textureButton = GetButton(path + "icons/" + t, !Globals.NIMBUSLAF));
5050 textureButton.setToolTipText(c + count);
5151 textureButton.addActionListener(new ActionListener()
5252 {
....@@ -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,15 +330,24 @@
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)
340349 {
341
- JTabbedPane skyboxpane = new JTabbedPane();
350
+ JTabbedPane skyboxpane = new JTabbedPane(JTabbedPane.LEFT);
342351
343352 AddSkyboxTab0(skyboxpane);
344353 AddSkyboxTab1(skyboxpane);
....@@ -406,13 +415,15 @@
406415 this.copy = this.group = group;
407416 //selectees = this.group.selectees;
408417
409
- if (copy.versionlist == null)
410
- {
411
- copy.versionlist = new Object3D[100];
412
- copy.versionindex = -1;
413
-
414
- Save(true);
415
- }
418
+ assert(false);
419
+
420
+// if (copy.versionlist == null)
421
+// {
422
+// copy.versionlist = new Object3D[100];
423
+// copy.versionindex = -1;
424
+//
425
+// //Save(true);
426
+// }
416427
417428 if(ui)
418429 SetupUI(objEditor);
....@@ -435,13 +446,13 @@
435446
436447 ((cRadio)radioPanel.getComponent(0)).SetCamera(cameraView.renderCamera, true);
437448
438
- if (copy.versionlist == null)
439
- {
440
- copy.versionlist = new Object3D[100];
441
- copy.versionindex = -1;
442
-
443
- Save(true);
444
- }
449
+// if (copy.versionlist == null)
450
+// {
451
+// copy.versionlist = new Object3D[100];
452
+// copy.versionindex = -1;
453
+//
454
+// //Save(true);
455
+// }
445456 }
446457
447458 void CloneSelection(boolean supports)
....@@ -531,33 +542,35 @@
531542 // menu.add("-");
532543 duplicateItem = oe.jTree.popup.add(new JMenuItem("Duplicate"));
533544 duplicateItem.addActionListener(this);
534
- cloneItem = menu.add(new MenuItem("Clone"));
545
+
546
+ cloneItem = oe.jTree.popup.add(new JMenuItem("Clone"));
535547 cloneItem.addActionListener(this);
536
- if (Globals.ADVANCED)
548
+ //if (Globals.ADVANCED)
537549 {
538550 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
539551 cloneSupportItem.addActionListener(this);
540552 }
553
+ oe.jTree.popup.addSeparator();
541554 menu.add("-");
542
- cutItem = menu.add(new MenuItem("Cut"));
555
+ cutItem = oe.jTree.popup.add(new JMenuItem("Cut"));
543556 cutItem.addActionListener(this);
544
- copyItem = menu.add(new MenuItem("Copy"));
557
+ copyItem = oe.jTree.popup.add(new JMenuItem("Copy"));
545558 copyItem.addActionListener(this);
546559 pasteItem = menu.add(new MenuItem("Paste"));
547560 pasteItem.addActionListener(this);
548561
549
- menu.add("-");
550
- pasteIntoItem = menu.add(new MenuItem("Paste into"));
562
+ oe.jTree.popup.addSeparator();
563
+ //menu.add("-");
564
+ pasteIntoItem = oe.jTree.popup.add(new JMenuItem("Paste into"));
551565 pasteIntoItem.addActionListener(this);
552
- pasteLinkItem = menu.add(new MenuItem("Paste link"));
566
+ pasteLinkItem = oe.jTree.popup.add(new JMenuItem("Paste link"));
553567 pasteLinkItem.addActionListener(this);
554
- pasteCloneItem = menu.add(new MenuItem("Paste clone"));
568
+ pasteCloneItem = oe.jTree.popup.add(new JMenuItem("Paste clone"));
555569 pasteCloneItem.addActionListener(this);
556
-// pasteExpandItem = menu.add(new MenuItem("Paste expand"));
570
+// CRASH pasteExpandItem = oe.jTree.popup.add(new JMenuItem("Paste expand"));
557571 // pasteExpandItem.addActionListener(this);
558
- menu.add("-");
559
- deleteItem = menu.add(new MenuItem("Delete"));
560
- deleteItem.addActionListener(this);
572
+ //menu.add("-");
573
+ oe.jTree.popup.addSeparator();
561574
562575 if (Globals.ADVANCED)
563576 {
....@@ -692,9 +705,8 @@
692705 setMasterItem.addActionListener(this);
693706 }
694707
695
- oe.menuBar.add(menu = new Menu("Group"));
696
-// grabItem = menu.add(new MenuItem("Grab"));
697
-// grabItem.addActionListener(this);
708
+ oe.menuBar.add(menu = new Menu("Order"));
709
+
698710 backItem = menu.add(new MenuItem("Back"));
699711 backItem.addActionListener(this);
700712 frontItem = menu.add(new MenuItem("Front"));
....@@ -702,13 +714,21 @@
702714 // compositeItem = menu.add(new MenuItem("Composite"));
703715 // compositeItem.addActionListener(this);
704716
717
+ grabItem = oe.jTree.popup.add(new JMenuItem("Group"));
718
+ grabItem.addActionListener(this);
719
+
705720 if (Globals.ADVANCED)
706721 {
707722 hideItem = menu.add(new MenuItem("Hidden Group"));
708723 hideItem.addActionListener(this);
709724 }
710
- ungroupItem = menu.add(new MenuItem("Ungroup"));
725
+ ungroupItem = oe.jTree.popup.add(new JMenuItem("Ungroup"));
711726 ungroupItem.addActionListener(this);
727
+
728
+ oe.jTree.popup.addSeparator();
729
+
730
+ deleteItem = oe.jTree.popup.add(new JMenuItem("Delete"));
731
+ deleteItem.addActionListener(this);
712732
713733 // menu.add("-");
714734 //
....@@ -745,11 +765,11 @@
745765 shadowYItem.addActionListener(this);
746766 shadowZItem = menu.add(new MenuItem("Shadow Blue"));
747767 shadowZItem.addActionListener(this);
748
- attributeItem = menu.add(new MenuItem("Attribute"));
749
- attributeItem.addActionListener(this);
750768
751769 if (Globals.ADVANCED)
752770 {
771
+ attributeItem = menu.add(new MenuItem("Attribute"));
772
+ attributeItem.addActionListener(this);
753773 menu.add("-");
754774 linkerItem = menu.add(new MenuItem("Linker"));
755775 linkerItem.addActionListener(this);
....@@ -759,11 +779,18 @@
759779 pointflowItem.addActionListener(this);
760780 }
761781 menu.add("-");
782
+ textureRatioRItem = menu.add(new MenuItem("Texture Ratio Red"));
783
+ textureRatioRItem.addActionListener(this);
784
+ textureRatioGItem = menu.add(new MenuItem("Texture Ratio Green"));
785
+ textureRatioGItem.addActionListener(this);
786
+ textureRatioBItem = menu.add(new MenuItem("Texture Ratio Blue"));
787
+ textureRatioBItem.addActionListener(this);
788
+ menu.add("-");
762789 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
763790 resetTransformItem.addActionListener(this);
764791 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
765792 resetCentroidItem.addActionListener(this);
766
- resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XY"));
793
+ resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XZ"));
767794 resetCentroidXZItem.addActionListener(this);
768795 transformGeometryItem = menu.add(new MenuItem("Transform Geometry"));
769796 transformGeometryItem.addActionListener(this);
....@@ -815,6 +842,8 @@
815842 }
816843
817844 oe.menuBar.add(menu = new Menu("Attributes"));
845
+ clearVersionsItem = menu.add(new MenuItem("Clear Versions"));
846
+ clearVersionsItem.addActionListener(this);
818847 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
819848 clearMaterialsItem.addActionListener(this);
820849 resetAllItem = menu.add(new MenuItem("Reset All"));
....@@ -837,9 +866,9 @@
837866 hideleavesItem.addActionListener(this);
838867 showleavesItem = menu.add(new MenuItem("Show Leaves"));
839868 showleavesItem.addActionListener(this);
840
- markleavesItem = menu.add(new MenuItem("Mark Leaves"));
869
+ markleavesItem = menu.add(new MenuItem("Anim Leaves"));
841870 markleavesItem.addActionListener(this);
842
- unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves"));
871
+ unmarkleavesItem = menu.add(new MenuItem("Unanim Leaves"));
843872 unmarkleavesItem.addActionListener(this);
844873 rewindleavesItem = menu.add(new MenuItem("Rewind Leaves"));
845874 rewindleavesItem.addActionListener(this);
....@@ -914,8 +943,10 @@
914943
915944 JTabbedPane resourcecontainer;
916945 cGridBag currenttab;
917
- boolean added; // patch for jar
946
+ //boolean added; // patch for jar
918947
948
+ int totalcount = 0;
949
+
919950 int tabcount = 0;
920951 int colcount = 0;
921952 int rowcount = 0;
....@@ -931,28 +962,30 @@
931962 // System.out.println();
932963
933964 if (//rowcount == 0 ||
934
- path.length == 1)
965
+ path.length == 1 && !path[0].equals("") && !path[0].equals(".DS_Store"))
935966 {
936967 currenttab = new cGridBag();
937
- added = false;
938968 String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
939969 currenttab.setName(tabname);
970
+ //added = false;
971
+ resourcecontainer.add(currenttab);
972
+ resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
940973 rowcount = 1;
941974 colcount = 0;
942975 texturecount = 0;
943976 }
944977
945
- if (path.length > 2 && path[2].toLowerCase().endsWith(".jpg"))
978
+ if (path.length > 2 && (path[2].toLowerCase().endsWith(".jpg") || path[2].toLowerCase().endsWith(".png")))
946979 {
947
- if (!added)
980
+ //if (!added)
948981 {
949
- added = true;
950
- resourcecontainer.add(currenttab);
982
+ //added = true;
951983 String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
952
- resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
984
+ currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname));
953985 }
954986
955
- AddTextureButton(path[0], path[1], path[2], texturecount++, currenttab);
987
+ AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab);
988
+ totalcount++;
956989
957990 if (++colcount >= columns)
958991 {
....@@ -978,6 +1011,8 @@
9781011 container.add(resourcecontainer);
9791012
9801013 Grafreed.ParseResources("textures", this);
1014
+
1015
+ // 935. System.out.println("Total = " + totalcount);
9811016 }
9821017
9831018 void SetupUI2(ObjEditor oe)
....@@ -1017,9 +1052,9 @@
10171052 oe.radioPanel.add(dummyButton);
10181053 oe.buttonGroup.add(dummyButton);
10191054 */
1020
- cGridBag copyOptionsPanel = new cGridBag();
1055
+ cGridBag versionManagerPanel = new cGridBag();
10211056
1022
- copyOptionsPanel.preferredHeight = 2;
1057
+ versionManagerPanel.preferredHeight = 4;
10231058
10241059 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
10251060
....@@ -1034,8 +1069,8 @@
10341069 // maxButton.addActionListener(this);
10351070 }
10361071
1037
-// cButton gcButton;
1038
-//
1072
+ cButton gcButton;
1073
+
10391074 // oe.toolbarPanel.add(gcButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
10401075 // gcButton.setToolTipText("Garbage collect");
10411076 // gcButton.addActionListener(new ActionListener()
....@@ -1046,25 +1081,25 @@
10461081 // }
10471082 // });
10481083
1049
- oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1084
+ oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10501085 collapseButton.setToolTipText("Collapse toolbar");
10511086 collapseButton.addActionListener(this);
10521087
1053
- oe.toolbarPanel.add(maximize3DButton = GetButton("", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1088
+ oe.toolbarPanel.add(maximize3DButton = GetButton("icons/square.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10541089 maximize3DButton.setToolTipText("Maximize 3D view");
10551090 maximize3DButton.addActionListener(this);
10561091
1057
- oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1092
+ oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10581093 twoButton.setToolTipText("Show 3D view only");
10591094 twoButton.addActionListener(this);
10601095 this.fullscreenLayout = twoButton;
10611096
1062
- oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1097
+ oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10631098 threeButton.setToolTipText("Show controls and 3D view");
10641099 threeButton.addActionListener(this);
10651100 if (Globals.ADVANCED)
10661101 {
1067
- oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1102
+ oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10681103 sixButton.setToolTipText("Show 3D view and controls");
10691104 sixButton.addActionListener(this);
10701105 }
....@@ -1073,50 +1108,51 @@
10731108 // sevenButton.addActionListener(this);
10741109 //
10751110
1076
- oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1111
+ oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10771112 fullButton.setToolTipText("Full-screen window");
10781113 fullButton.addActionListener(this);
10791114
1080
- oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1115
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10811116 screenfitButton.setToolTipText("Screen fit");
10821117 screenfitButton.addActionListener(this);
10831118
1084
- oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1119
+ oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10851120 restoreCameraButton.setToolTipText("Restore viewpoint");
10861121 restoreCameraButton.addActionListener(this);
10871122
1088
- copyOptionsPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1123
+ versionManagerPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10891124 saveVersionButton.setToolTipText("Duplicate current version");
10901125 saveVersionButton.addActionListener(this);
10911126
1092
- copyOptionsPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1127
+ versionManagerPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10931128 deleteVersionButton.setToolTipText("Delete current version");
10941129 deleteVersionButton.addActionListener(this);
1130
+ deleteVersionButton.setEnabled(false);
10951131
1096
- copyOptionsPanel.add(previousVersionButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1132
+ versionManagerPanel.add(previousVersionButton = GetButton("icons/undo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10971133 previousVersionButton.setToolTipText("Previous version");
10981134 previousVersionButton.addActionListener(this);
10991135 previousVersionButton.setEnabled(false);
11001136
11011137 cGridBag updown = new cGridBag().setVertical(true);
1102
- updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1138
+ updown.add(restoreButton = GetButton("icons/restore.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11031139 restoreButton.setToolTipText("Undo (restore current version)");
11041140 restoreButton.addActionListener(this);
1105
- //restoreButton.setEnabled(false);
1141
+ restoreButton.setEnabled(false);
11061142
1107
- updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1143
+ updown.add(replaceButton = GetButton("icons/replace.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11081144 replaceButton.setToolTipText("Save (replace current version)");
11091145 replaceButton.addActionListener(this);
1110
- //replaceButton.setEnabled(false);
1146
+ replaceButton.setEnabled(false);
11111147
1112
- copyOptionsPanel.add(updown);
1148
+ versionManagerPanel.add(updown);
11131149
1114
- copyOptionsPanel.add(nextVersionButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1150
+ versionManagerPanel.add(nextVersionButton = GetButton("icons/redo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11151151 nextVersionButton.setToolTipText("Next version");
11161152 nextVersionButton.addActionListener(this);
11171153 nextVersionButton.setEnabled(false);
11181154
1119
- oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1155
+ oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11201156 oneStepButton.setToolTipText("Animate one step forward");
11211157 oneStepButton.addActionListener(this);
11221158
....@@ -1139,11 +1175,11 @@
11391175
11401176 if (Globals.ADVANCED)
11411177 {
1142
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1178
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11431179 snapobjectButton.addActionListener(this);
11441180 snapobjectButton.setToolTipText("Snap Object");
11451181
1146
- oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1182
+ oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11471183 fourButton.addActionListener(this);
11481184 fourButton.setToolTipText("Show control panel only");
11491185 }
....@@ -1151,11 +1187,11 @@
11511187 //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
11521188
11531189
1154
- oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1190
+ oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11551191 rootButton.setToolTipText("Open selection in new tab");
11561192 rootButton.addActionListener(this);
11571193
1158
- oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1194
+ oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11591195 closeButton.setToolTipText("Close tab");
11601196 closeButton.addActionListener(this);
11611197 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -1164,38 +1200,38 @@
11641200 cGridBag row1 = new cGridBag();
11651201
11661202 // INSERT
1167
- row1.add(gridButton = GetButton("icons/grid.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1203
+ row1.add(gridButton = GetButton("icons/grid.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11681204 gridButton.setToolTipText("Create ground");
11691205 gridButton.addActionListener(this);
11701206
1171
- row1.add(boxButton = GetButton("icons/box.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1207
+ row1.add(boxButton = GetButton("icons/box.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11721208 boxButton.setToolTipText("Create box");
11731209 boxButton.addActionListener(this);
11741210
1175
- row1.add(sphereButton = GetButton("icons/sphere.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1176
- sphereButton.setToolTipText("Create sphere");
1177
- sphereButton.addActionListener(this);
1178
-
1179
- row1.add(coneButton = GetButton("icons/cone.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1180
- coneButton.setToolTipText("Create cone");
1181
- coneButton.addActionListener(this);
1182
-
1183
- row1.add(torusButton = GetButton("icons/torus.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1184
- torusButton.setToolTipText("Create torus");
1185
- torusButton.addActionListener(this);
1186
-
1187
- row1.add(superButton = GetButton("icons/super.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1211
+ row1.add(superButton = GetButton("icons/super.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11881212 superButton.setToolTipText("Create superellipsoid");
11891213 superButton.addActionListener(this);
11901214
1191
- if (Globals.ADVANCED)
1215
+ row1.add(sphereButton = GetButton("icons/sphere.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1216
+ sphereButton.setToolTipText("Create sphere");
1217
+ sphereButton.addActionListener(this);
1218
+
1219
+ row1.add(coneButton = GetButton("icons/cone.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1220
+ coneButton.setToolTipText("Create cone");
1221
+ coneButton.addActionListener(this);
1222
+
1223
+ row1.add(torusButton = GetButton("icons/torus.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1224
+ torusButton.setToolTipText("Create torus");
1225
+ torusButton.addActionListener(this);
1226
+
1227
+ if (false) //Globals.ADVANCED)
11921228 {
1193
- oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1229
+ oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11941230 kleinButton.setToolTipText("Create Klein bottle");
11951231 kleinButton.addActionListener(this);
11961232 }
11971233
1198
- row1.add(particlesButton = GetButton("icons/particles.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1234
+ row1.add(particlesButton = GetButton("icons/particles.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11991235 particlesButton.setToolTipText("Create particle system");
12001236 particlesButton.addActionListener(this);
12011237
....@@ -1203,31 +1239,31 @@
12031239
12041240 cGridBag row2 = new cGridBag();
12051241
1206
- row2.add(groupButton = GetButton("icons/group.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1242
+ row2.add(groupButton = GetButton("icons/group.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12071243 groupButton.setToolTipText("Create group");
12081244 groupButton.addActionListener(this);
12091245
1210
- row2.add(compositeButton = GetButton("icons/composite.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1246
+ row2.add(compositeButton = GetButton("icons/composite.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12111247 compositeButton.setToolTipText("Create composite");
12121248 compositeButton.addActionListener(this);
12131249
1214
- row2.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1250
+ row2.add(switchButton = GetButton("icons/switch.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12151251 switchButton.setToolTipText("Create item switcher");
12161252 switchButton.addActionListener(this);
12171253
1218
- row2.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1254
+ row2.add(loopButton = GetButton("icons/loop.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12191255 loopButton.setToolTipText("Create loop");
12201256 loopButton.addActionListener(this);
12211257
1222
- row2.add(textureButton = GetButton("icons/texture.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1258
+ row2.add(textureButton = GetButton("icons/texture.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12231259 textureButton.setToolTipText("Create texture");
12241260 textureButton.addActionListener(this);
12251261
1226
- row2.add(overlayButton = GetButton("icons/overlay.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1262
+ row2.add(overlayButton = GetButton("icons/overlay.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12271263 overlayButton.setToolTipText("Create overlay");
12281264 overlayButton.addActionListener(this);
12291265
1230
- row2.add(lightButton = GetButton("icons/light-bulb.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1266
+ row2.add(lightButton = GetButton("icons/light-bulb.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12311267 lightButton.setToolTipText("Create light");
12321268 lightButton.addActionListener(this);
12331269
....@@ -1237,6 +1273,11 @@
12371273
12381274 CreateTexturePanel(textures);
12391275
1276
+ int tabCount = resourcecontainer.getTabCount();
1277
+
1278
+ if (tabCount > 0)
1279
+ resourcecontainer.setSelectedIndex((int)(Math.random() * tabCount));
1280
+
12401281 oe.toolboxPanel.add(textures);
12411282
12421283 textures.preferredHeight = 100;
....@@ -1244,11 +1285,11 @@
12441285 CreateSkyboxPanel(oe.skyboxPanel);
12451286
12461287 // EDIT panel
1247
- editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1288
+ editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12481289 editButton.setToolTipText("Pin selection controls");
12491290 editButton.addActionListener(this);
12501291
1251
- editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1292
+ editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12521293 uneditButton.setToolTipText("Unpin and remove selection controls");
12531294 uneditButton.addActionListener(this);
12541295
....@@ -1256,7 +1297,7 @@
12561297 allParamsButton.setToolTipText("Show all controls");
12571298 allParamsButton.addActionListener(this);
12581299
1259
- editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1300
+ editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12601301 clearPanelButton.setToolTipText("Clear all controls");
12611302 clearPanelButton.addActionListener(this);
12621303
....@@ -1264,7 +1305,7 @@
12641305 //unselectButton.setToolTipText("Unselect");
12651306 //unselectButton.addActionListener(this);
12661307
1267
- editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1308
+ editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12681309 flashSelectionButton.setToolTipText("Highlight selection");
12691310 flashSelectionButton.addActionListener(this);
12701311
....@@ -1287,6 +1328,8 @@
12871328
12881329 cGridBag jSPPanel = new cGridBag();
12891330
1331
+ jSPPanel.preferredHeight = 20;
1332
+
12901333 JScrollPane jSP;
12911334 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
12921335 jSPPanel.add(jSP = new JScrollPane(oe.jTree)); //, oe.aConstraints);
....@@ -1295,11 +1338,11 @@
12951338 oe.treePanel.add(jSPPanel);
12961339 oe.treePanel.Return();
12971340
1298
- oe.treePanel.add(copyOptionsPanel);
1341
+ oe.treePanel.add(versionManagerPanel);
12991342 oe.treePanel.Return();
1300
- cGridBag sliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1301
- versionSlider = (cNumberSlider)sliderPane.getComponent(1);
1302
- sliderPane.preferredHeight = 1;
1343
+ versionSliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1344
+ versionSlider = (cNumberSlider)versionSliderPane.getComponent(1);
1345
+ versionSliderPane.preferredHeight = 3;
13031346
13041347 // mainPanel.setDividerLocation(0.1); //1.0);
13051348 mainPanel.setResizeWeight(0.4);
....@@ -1457,13 +1500,13 @@
14571500
14581501 void EditObject(Object3D obj)
14591502 {
1460
- assert(obj instanceof Composite);
1503
+ //assert(obj instanceof Composite);
14611504
1462
- if (obj.versionlist == null)
1463
- {
1464
- obj.versionlist = new Object3D[100];
1465
- obj.versionindex = -1;
1466
- }
1505
+// if (obj.versionlist == null)
1506
+// {
1507
+// obj.versionlist = new Object3D[100];
1508
+// obj.versionindex = -1;
1509
+// }
14671510
14681511 cRadio radioButton = new cRadio(obj.name);
14691512
....@@ -1489,6 +1532,7 @@
14891532
14901533 oe.SetupViews();
14911534
1535
+ if (Globals.DEBUG)
14921536 System.out.println("SetupViews");
14931537 DragSource.getDefaultDragSource().createDefaultDragGestureRecognizer(
14941538 oe.cameraView, DnDConstants.ACTION_COPY_OR_MOVE, this); // ACTION_LINK ??
....@@ -2092,24 +2136,24 @@
20922136 switch(axis)
20932137 {
20942138 case 0 :
2095
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2096
- vert2.x = minima.x; vert2.y = maxima.y; vert2.z = minima.z;
2097
- vert3.x = minima.x; vert3.y = minima.y; vert3.z = maxima.z;
2098
- vert4.x = minima.x; vert4.y = maxima.y; vert4.z = maxima.z;
2139
+ vert1.x = minima.x + 0.001f; vert1.y = minima.y; vert1.z = minima.z;
2140
+ vert2.x = minima.x + 0.001f; vert2.y = maxima.y; vert2.z = minima.z;
2141
+ vert3.x = minima.x + 0.001f; vert3.y = minima.y; vert3.z = maxima.z;
2142
+ vert4.x = minima.x + 0.001f; vert4.y = maxima.y; vert4.z = maxima.z;
20992143 norm = cVector.X;
21002144 break;
21012145 case 1 :
2102
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2103
- vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z;
2104
- vert3.x = minima.x; vert3.y = minima.y; vert3.z = maxima.z;
2105
- vert4.x = maxima.x; vert4.y = minima.y; vert4.z = maxima.z;
2146
+ vert1.x = minima.x; vert1.y = minima.y + 0.001f; vert1.z = minima.z;
2147
+ vert2.x = maxima.x; vert2.y = minima.y + 0.001f; vert2.z = minima.z;
2148
+ vert3.x = minima.x; vert3.y = minima.y + 0.001f; vert3.z = maxima.z;
2149
+ vert4.x = maxima.x; vert4.y = minima.y + 0.001f; vert4.z = maxima.z;
21062150 norm = cVector.Y;
21072151 break;
21082152 case 2 :
2109
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2110
- vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z;
2111
- vert3.x = minima.x; vert3.y = maxima.y; vert3.z = minima.z;
2112
- vert4.x = maxima.x; vert4.y = maxima.y; vert4.z = minima.z;
2153
+ vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z + 0.001f;
2154
+ vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z + 0.001f;
2155
+ vert3.x = minima.x; vert3.y = maxima.y; vert3.z = minima.z + 0.001f;
2156
+ vert4.x = maxima.x; vert4.y = maxima.y; vert4.z = minima.z + 0.001f;
21132157 norm = cVector.Z;
21142158 break;
21152159 }
....@@ -2150,7 +2194,11 @@
21502194 shadow.material = new cMaterial(obj.material);
21512195 shadow.material.diffuse = 0.0001f;
21522196 shadow.material.specular = 0.0001f;
2153
- //shadow.projectedVertices[1].x = 300;
2197
+ shadow.material.opacity = 0.75f;
2198
+
2199
+ AllocProjectedVertices(shadow);
2200
+
2201
+ shadow.projectedVertices[1].x = 300;
21542202
21552203 makeSomething(shadow);
21562204 }
....@@ -2671,27 +2719,35 @@
26712719 } else
26722720 if (source == loopItem || source == loopButton)
26732721 {
2722
+ if (!group.selection.isEmpty())
2723
+ {
26742724 Composite csg = new GroupLeaf();
26752725 csg.count = 5;
2676
- group(csg);
26772726 Composite child = new cGroup("Branch");
26782727 csg.addChild(child);
26792728 child.addChild(csg);
2729
+ group(csg);
2730
+ }
26802731 } else
26812732 if (source == doubleItem)
26822733 {
2734
+ if (!group.selection.isEmpty())
2735
+ {
26832736 Composite csg = new GroupLeaf("Fork");
26842737 csg.count = 5;
2685
- group(csg);
26862738 Composite child = new cGroup("Branch A");
26872739 csg.addChild(child);
26882740 child.addChild(csg);
26892741 child = new cGroup("Branch B");
26902742 csg.addChild(child);
26912743 child.addChild(csg);
2744
+ group(csg);
2745
+ }
26922746 } else
26932747 if (source == tripleItem)
26942748 {
2749
+ if (!group.selection.isEmpty())
2750
+ {
26952751 Composite csg = new GroupLeaf("Trident");
26962752 csg.count = 4;
26972753 group(csg);
....@@ -2704,6 +2760,7 @@
27042760 child = new cGroup();
27052761 csg.addChild(child);
27062762 child.addChild(csg);
2763
+ }
27072764 } else
27082765 if (source == computeAOItem)
27092766 {
....@@ -3339,22 +3396,34 @@
33393396 } else
33403397 if (source == ungroupItem || source == ungroupButton)
33413398 {
3342
- boolean hasRoot = false;
3399
+ boolean canUngroup = true;
33433400
33443401 for (int i=0; i<group.selection.size(); i++)
33453402 {
3346
- if (group.selection.get(i) == group)
3403
+ Object3D selectedItem = group.selection.get(i);
3404
+
3405
+ if (selectedItem.Size() == 0)
33473406 {
3348
- hasRoot = true;
3407
+ // Cannot ungroup leaves
3408
+ canUngroup = false;
3409
+ break;
3410
+ }
3411
+
3412
+ if (selectedItem == group)
3413
+ {
3414
+ // Cannot ungroup root
3415
+ canUngroup = false;
33493416 break;
33503417 }
33513418 }
33523419
3353
- if (!hasRoot)
3420
+ if (canUngroup)
33543421 {
33553422 for (int i=0; i<group.selection.size(); i++)
33563423 {
3357
- Ungroup(group.selection.get(i));
3424
+ Object3D selectedItem = group.selection.get(i);
3425
+
3426
+ Ungroup(selectedItem);
33583427 }
33593428
33603429 ClearSelection(false);
....@@ -3405,6 +3474,10 @@
34053474 if (source == clearMaterialsItem)
34063475 {
34073476 ClearMaterials();
3477
+ } else
3478
+ if (source == clearVersionsItem)
3479
+ {
3480
+ ClearVersions();
34083481 } else
34093482 if (source == liveleavesItem)
34103483 {
....@@ -3545,6 +3618,18 @@
35453618 if (source == transformChildrenItem)
35463619 {
35473620 TransformChildren();
3621
+ } else
3622
+ if (source == textureRatioRItem)
3623
+ {
3624
+ TextureRatio(0);
3625
+ } else
3626
+ if (source == textureRatioGItem)
3627
+ {
3628
+ TextureRatio(1);
3629
+ } else
3630
+ if (source == textureRatioBItem)
3631
+ {
3632
+ TextureRatio(2);
35483633 } else
35493634 if (source == resetTransformItem)
35503635 {
....@@ -3918,6 +4003,9 @@
39184003 if (source == closeButton)
39194004 {
39204005 //System.out.println("CLOSE: " + buttonGroup.getSelection());
4006
+ if (copy.versionlist != null)
4007
+ Replace();
4008
+
39214009 cRadio ab;
39224010 for (Enumeration e = buttonGroup.getElements(); e.hasMoreElements();)
39234011 {
....@@ -4016,6 +4104,9 @@
40164104 } else
40174105 if(source instanceof cRadio)
40184106 {
4107
+ if (copy.versionlist != null)
4108
+ Replace();
4109
+
40194110 group.parent = keepparent;
40204111 group.attributes = 0;
40214112 //group.editWindow = null;
....@@ -4067,7 +4158,30 @@
40674158 */
40684159 radio.layout.doClick();
40694160
4070
- SetUndoStates();
4161
+ //assert(copy instanceof Composite);
4162
+
4163
+ if (copy.versionlist == null)
4164
+ {
4165
+ copy.versionindex = -1;
4166
+
4167
+ // Cannot work with loops
4168
+ // To fix this issue, we first mark all nodes above the root,
4169
+ // and check if any of these nodes are reachable below the root.
4170
+ Grafreed.grafreed.universe.TagObjects(copy, true);
4171
+
4172
+ if (copy instanceof Composite && copy.versionlist == null && !copy.HasTags())
4173
+ {
4174
+ copy.versionlist = new Object3D[100];
4175
+
4176
+ //Save(true);
4177
+ }
4178
+ else
4179
+ copy.versionindex = -2;
4180
+
4181
+ Grafreed.grafreed.universe.TagObjects(copy, false);
4182
+ }
4183
+
4184
+ SetVersionStates();
40714185
40724186 ClearUnpinned();
40734187
....@@ -4182,6 +4296,18 @@
41824296 refreshContents();
41834297 }
41844298
4299
+ void TextureRatio(int axis)
4300
+ {
4301
+ Object3D obj;
4302
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
4303
+ {
4304
+ obj = (Object3D)e.nextElement();
4305
+ obj.TextureRatio(axis);
4306
+ }
4307
+
4308
+ refreshContents();
4309
+ }
4310
+
41854311 void ResetTransform()
41864312 {
41874313 ResetTransform(-1);
....@@ -4197,42 +4323,8 @@
41974323 if (obj.toParent == null)
41984324 continue;
41994325
4200
- if (mask == -1)
4201
- {
4202
- if (obj instanceof Camera) // jan 2014
4203
- {
4204
- LA.matIdentity(obj.toParent);
4205
- LA.matIdentity(obj.fromParent);
4206
- }
4207
- else
4208
- {
4209
- obj.toParent = null; // jan 2014 LA.matIdentity(obj.toParent);
4210
- obj.fromParent = null; // LA.matIdentity(obj.fromParent);
4211
- }
4212
- TouchTransform(obj);
4213
- continue;
4214
- }
4215
- if ((mask&2) != 0) // Scale
4216
- {
4217
- obj.toParent[0][0] = obj.toParent[1][1] = obj.toParent[2][2] = 1;
4218
- obj.toParent[0][1] = obj.toParent[1][0] = obj.toParent[2][0] = 0;
4219
- obj.toParent[0][2] = obj.toParent[1][2] = obj.toParent[2][1] = 0;
4220
- obj.fromParent[0][0] = obj.fromParent[1][1] = obj.fromParent[2][2] = 1;
4221
- obj.fromParent[0][1] = obj.fromParent[1][0] = obj.fromParent[2][0] = 0;
4222
- obj.fromParent[0][2] = obj.fromParent[1][2] = obj.fromParent[2][1] = 0;
4223
- }
4224
- if ((mask&4) != 0) // Rotation
4225
- {
4226
- // ?
4227
- }
4228
- if ((mask&1) != 0) // Translation
4229
- {
4230
- if (obj.toParent != null)
4231
- {
4232
- obj.toParent[3][0] = obj.toParent[3][1] = obj.toParent[3][2] = 0;
4233
- obj.fromParent[3][0] = obj.fromParent[3][1] = obj.fromParent[3][2] = 0;
4234
- }
4235
- }
4326
+ obj.ResetTransform(mask);
4327
+
42364328 if (obj.parent == null)
42374329 {
42384330 System.out.println("NULL PARENT!");
....@@ -4741,6 +4833,12 @@
47414833 {
47424834 Object3D obj = group.selection.get(i);
47434835
4836
+ if (obj.toParent == null)
4837
+ {
4838
+ obj.toParent = LA.newMatrix();
4839
+ obj.fromParent = LA.newMatrix();
4840
+ }
4841
+
47444842 LA.matTranslate(obj.toParent, i * scale, 0, 0);
47454843 LA.matTranslateInv(obj.fromParent, -i * scale, 0, 0);
47464844 }
....@@ -5032,6 +5130,12 @@
50325130 refreshContents();
50335131 }
50345132
5133
+ void ClearVersions()
5134
+ {
5135
+ group.selection.ClearVersions();
5136
+ refreshContents();
5137
+ }
5138
+
50355139 void FlipV(boolean flip)
50365140 {
50375141 group.selection.FlipV(flip);
....@@ -5306,20 +5410,23 @@
53065410
53075411 boolean allComposites = true;
53085412
5413
+ if (group.selection != null)
53095414 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
53105415 {
5311
- if (!(e.nextElement() instanceof Composite))
5416
+ Object next = e.nextElement();
5417
+ if (!(next instanceof Composite)) // || (next instanceof GroupLeaf))
53125418 {
53135419 allComposites = false;
53145420 break;
53155421 }
53165422 }
53175423
5318
- rootButton.setEnabled(allComposites);
5424
+ rootButton.setEnabled(true); // allComposites);
53195425 }
53205426
53215427 void refreshContents(boolean cp)
53225428 {
5429
+ if (Globals.ADVANCED)
53235430 //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
53245431 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
53255432 {
....@@ -6213,11 +6320,11 @@
62136320 private MenuItem lookAtItem;
62146321 private MenuItem lookFromItem;
62156322 private MenuItem switchViewItem;
6216
- private MenuItem cutItem;
6323
+ private JMenuItem cutItem;
62176324 private MenuItem undoItem;
62186325 private MenuItem redoItem;
62196326 private JMenuItem duplicateItem;
6220
- private MenuItem cloneItem;
6327
+ private JMenuItem cloneItem;
62216328 private MenuItem cloneSupportItem;
62226329 private MenuItem overwriteGeoItem;
62236330 private MenuItem overwriteMatItem;
....@@ -6238,13 +6345,13 @@
62386345 private MenuItem cloneGeometriesItem;
62396346 private MenuItem shareGeometriesItem;
62406347 private MenuItem mergeGeometriesItem;
6241
- private MenuItem copyItem;
6348
+ private JMenuItem copyItem;
62426349 private MenuItem pasteItem;
6243
- private MenuItem pasteIntoItem;
6244
- private MenuItem pasteLinkItem;
6245
- private MenuItem pasteCloneItem;
6246
- private MenuItem pasteExpandItem;
6247
- private MenuItem deleteItem;
6350
+ private JMenuItem pasteIntoItem;
6351
+ private JMenuItem pasteLinkItem;
6352
+ private JMenuItem pasteCloneItem;
6353
+ private JMenuItem pasteExpandItem;
6354
+ private JMenuItem deleteItem;
62486355 private MenuItem clearAllItem;
62496356 private MenuItem genUVItem;
62506357 private MenuItem genNormalsMESHItem;
....@@ -6270,6 +6377,7 @@
62706377 private MenuItem clipMeshItem;
62716378 private MenuItem smoothMeshItem;
62726379 private MenuItem clearMaterialsItem;
6380
+ private MenuItem clearVersionsItem;
62736381
62746382 private MenuItem liveleavesItem;
62756383 private MenuItem unliveleavesItem;
....@@ -6293,13 +6401,16 @@
62936401 private MenuItem maxTexturesItem;
62946402 private MenuItem panoTexturesItem;
62956403
6404
+ private MenuItem textureRatioRItem;
6405
+ private MenuItem textureRatioGItem;
6406
+ private MenuItem textureRatioBItem;
62966407 private MenuItem resetCentroidItem;
62976408 private MenuItem resetCentroidXZItem;
62986409 private MenuItem resetTransformItem;
62996410 private MenuItem transformGeometryItem;
63006411 private MenuItem transformChildrenItem;
63016412 private MenuItem hideItem;
6302
- private MenuItem grabItem;
6413
+ private JMenuItem grabItem;
63036414 private MenuItem backItem;
63046415 private MenuItem frontItem;
63056416 private MenuItem cameraItem;
....@@ -6312,7 +6423,7 @@
63126423 private MenuItem switchTransfoItem;
63136424 private MenuItem morphItem;
63146425 private MenuItem linkerItem;
6315
- private MenuItem ungroupItem;
6426
+ private JMenuItem ungroupItem;
63166427 private MenuItem editItem;
63176428 private MenuItem openWindowItem;
63186429 private MenuItem editLeafItem;