Normand Briere
2019-09-02 21ac57b36a9e3b909853c7d64ac29b7ad72490a3
GroupEditor.java
....@@ -29,7 +29,7 @@
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));
3434 skyboxButton.setToolTipText(s.equals("") ? "No background" : s);
3535 skyboxButton.addActionListener(new ActionListener()
....@@ -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 {
....@@ -347,7 +347,7 @@
347347
348348 public void CreateSkyboxPanel(cGridBag skyboxPanel)
349349 {
350
- JTabbedPane skyboxpane = new JTabbedPane();
350
+ JTabbedPane skyboxpane = new JTabbedPane(JTabbedPane.LEFT);
351351
352352 AddSkyboxTab0(skyboxpane);
353353 AddSkyboxTab1(skyboxpane);
....@@ -366,16 +366,6 @@
366366 }
367367
368368 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();
379369 }
380370
381371 //ObjEditor objEditor;
....@@ -415,13 +405,15 @@
415405 this.copy = this.group = group;
416406 //selectees = this.group.selectees;
417407
418
- if (copy.versionlist == null)
419
- {
420
- copy.versionlist = new Object3D[100];
421
- copy.versionindex = -1;
422
-
423
- Save(true);
424
- }
408
+ assert(false);
409
+
410
+// if (copy.versionlist == null)
411
+// {
412
+// copy.versionlist = new Object3D[100];
413
+// copy.versionindex = -1;
414
+//
415
+// //Save(true);
416
+// }
425417
426418 if(ui)
427419 SetupUI(objEditor);
....@@ -444,13 +436,13 @@
444436
445437 ((cRadio)radioPanel.getComponent(0)).SetCamera(cameraView.renderCamera, true);
446438
447
- if (copy.versionlist == null)
448
- {
449
- copy.versionlist = new Object3D[100];
450
- copy.versionindex = -1;
451
-
452
- Save(true);
453
- }
439
+// if (copy.versionlist == null)
440
+// {
441
+// copy.versionlist = new Object3D[100];
442
+// copy.versionindex = -1;
443
+//
444
+// //Save(true);
445
+// }
454446 }
455447
456448 void CloneSelection(boolean supports)
....@@ -540,33 +532,35 @@
540532 // menu.add("-");
541533 duplicateItem = oe.jTree.popup.add(new JMenuItem("Duplicate"));
542534 duplicateItem.addActionListener(this);
543
- cloneItem = menu.add(new MenuItem("Clone"));
535
+
536
+ cloneItem = oe.jTree.popup.add(new JMenuItem("Clone"));
544537 cloneItem.addActionListener(this);
545
- if (Globals.ADVANCED)
538
+ //if (Globals.ADVANCED)
546539 {
547540 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
548541 cloneSupportItem.addActionListener(this);
549542 }
543
+ oe.jTree.popup.addSeparator();
550544 menu.add("-");
551
- cutItem = menu.add(new MenuItem("Cut"));
545
+ cutItem = oe.jTree.popup.add(new JMenuItem("Cut"));
552546 cutItem.addActionListener(this);
553
- copyItem = menu.add(new MenuItem("Copy"));
547
+ copyItem = oe.jTree.popup.add(new JMenuItem("Copy"));
554548 copyItem.addActionListener(this);
555549 pasteItem = menu.add(new MenuItem("Paste"));
556550 pasteItem.addActionListener(this);
557551
558
- menu.add("-");
559
- pasteIntoItem = menu.add(new MenuItem("Paste into"));
552
+ oe.jTree.popup.addSeparator();
553
+ //menu.add("-");
554
+ pasteIntoItem = oe.jTree.popup.add(new JMenuItem("Paste into"));
560555 pasteIntoItem.addActionListener(this);
561
- pasteLinkItem = menu.add(new MenuItem("Paste link"));
556
+ pasteLinkItem = oe.jTree.popup.add(new JMenuItem("Paste link"));
562557 pasteLinkItem.addActionListener(this);
563
- pasteCloneItem = menu.add(new MenuItem("Paste clone"));
558
+ pasteCloneItem = oe.jTree.popup.add(new JMenuItem("Paste clone"));
564559 pasteCloneItem.addActionListener(this);
565
-// pasteExpandItem = menu.add(new MenuItem("Paste expand"));
560
+// CRASH pasteExpandItem = oe.jTree.popup.add(new JMenuItem("Paste expand"));
566561 // pasteExpandItem.addActionListener(this);
567
- menu.add("-");
568
- deleteItem = menu.add(new MenuItem("Delete"));
569
- deleteItem.addActionListener(this);
562
+ //menu.add("-");
563
+ oe.jTree.popup.addSeparator();
570564
571565 if (Globals.ADVANCED)
572566 {
....@@ -701,9 +695,8 @@
701695 setMasterItem.addActionListener(this);
702696 }
703697
704
- oe.menuBar.add(menu = new Menu("Group"));
705
-// grabItem = menu.add(new MenuItem("Grab"));
706
-// grabItem.addActionListener(this);
698
+ oe.menuBar.add(menu = new Menu("Order"));
699
+
707700 backItem = menu.add(new MenuItem("Back"));
708701 backItem.addActionListener(this);
709702 frontItem = menu.add(new MenuItem("Front"));
....@@ -711,13 +704,21 @@
711704 // compositeItem = menu.add(new MenuItem("Composite"));
712705 // compositeItem.addActionListener(this);
713706
707
+ grabItem = oe.jTree.popup.add(new JMenuItem("Group"));
708
+ grabItem.addActionListener(this);
709
+
714710 if (Globals.ADVANCED)
715711 {
716712 hideItem = menu.add(new MenuItem("Hidden Group"));
717713 hideItem.addActionListener(this);
718714 }
719
- ungroupItem = menu.add(new MenuItem("Ungroup"));
715
+ ungroupItem = oe.jTree.popup.add(new JMenuItem("Ungroup"));
720716 ungroupItem.addActionListener(this);
717
+
718
+ oe.jTree.popup.addSeparator();
719
+
720
+ deleteItem = oe.jTree.popup.add(new JMenuItem("Delete"));
721
+ deleteItem.addActionListener(this);
721722
722723 // menu.add("-");
723724 //
....@@ -754,9 +755,9 @@
754755 shadowYItem.addActionListener(this);
755756 shadowZItem = menu.add(new MenuItem("Shadow Blue"));
756757 shadowZItem.addActionListener(this);
758
+
757759 attributeItem = menu.add(new MenuItem("Attribute"));
758760 attributeItem.addActionListener(this);
759
-
760761 if (Globals.ADVANCED)
761762 {
762763 menu.add("-");
....@@ -768,11 +769,18 @@
768769 pointflowItem.addActionListener(this);
769770 }
770771 menu.add("-");
772
+ textureRatioRItem = menu.add(new MenuItem("Texture Ratio Red"));
773
+ textureRatioRItem.addActionListener(this);
774
+ textureRatioGItem = menu.add(new MenuItem("Texture Ratio Green"));
775
+ textureRatioGItem.addActionListener(this);
776
+ textureRatioBItem = menu.add(new MenuItem("Texture Ratio Blue"));
777
+ textureRatioBItem.addActionListener(this);
778
+ menu.add("-");
771779 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
772780 resetTransformItem.addActionListener(this);
773781 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
774782 resetCentroidItem.addActionListener(this);
775
- resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XY"));
783
+ resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XZ"));
776784 resetCentroidXZItem.addActionListener(this);
777785 transformGeometryItem = menu.add(new MenuItem("Transform Geometry"));
778786 transformGeometryItem.addActionListener(this);
....@@ -824,6 +832,8 @@
824832 }
825833
826834 oe.menuBar.add(menu = new Menu("Attributes"));
835
+ clearVersionsItem = menu.add(new MenuItem("Clear Versions"));
836
+ clearVersionsItem.addActionListener(this);
827837 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
828838 clearMaterialsItem.addActionListener(this);
829839 resetAllItem = menu.add(new MenuItem("Reset All"));
....@@ -846,9 +856,9 @@
846856 hideleavesItem.addActionListener(this);
847857 showleavesItem = menu.add(new MenuItem("Show Leaves"));
848858 showleavesItem.addActionListener(this);
849
- markleavesItem = menu.add(new MenuItem("Mark Leaves"));
859
+ markleavesItem = menu.add(new MenuItem("Anim Leaves"));
850860 markleavesItem.addActionListener(this);
851
- unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves"));
861
+ unmarkleavesItem = menu.add(new MenuItem("Unanim Leaves"));
852862 unmarkleavesItem.addActionListener(this);
853863 rewindleavesItem = menu.add(new MenuItem("Rewind Leaves"));
854864 rewindleavesItem.addActionListener(this);
....@@ -923,8 +933,10 @@
923933
924934 JTabbedPane resourcecontainer;
925935 cGridBag currenttab;
926
- boolean added; // patch for jar
936
+ //boolean added; // patch for jar
927937
938
+ int totalcount = 0;
939
+
928940 int tabcount = 0;
929941 int colcount = 0;
930942 int rowcount = 0;
....@@ -940,28 +952,30 @@
940952 // System.out.println();
941953
942954 if (//rowcount == 0 ||
943
- path.length == 1)
955
+ path.length == 1 && !path[0].equals("") && !path[0].equals(".DS_Store"))
944956 {
945957 currenttab = new cGridBag();
946
- added = false;
947958 String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
948959 currenttab.setName(tabname);
960
+ //added = false;
961
+ resourcecontainer.add(currenttab);
962
+ resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
949963 rowcount = 1;
950964 colcount = 0;
951965 texturecount = 0;
952966 }
953967
954
- if (path.length > 2 && path[2].toLowerCase().endsWith(".jpg"))
968
+ if (path.length > 2 && (path[2].toLowerCase().endsWith(".jpg") || path[2].toLowerCase().endsWith(".png")))
955969 {
956
- if (!added)
970
+ //if (!added)
957971 {
958
- added = true;
959
- resourcecontainer.add(currenttab);
972
+ //added = true;
960973 String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
961
- resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
974
+ currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname));
962975 }
963976
964
- AddTextureButton(path[0], path[1], path[2], texturecount++, currenttab);
977
+ AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab);
978
+ totalcount++;
965979
966980 if (++colcount >= columns)
967981 {
....@@ -987,6 +1001,8 @@
9871001 container.add(resourcecontainer);
9881002
9891003 Grafreed.ParseResources("textures", this);
1004
+
1005
+ // 935. System.out.println("Total = " + totalcount);
9901006 }
9911007
9921008 void SetupUI2(ObjEditor oe)
....@@ -1026,9 +1042,9 @@
10261042 oe.radioPanel.add(dummyButton);
10271043 oe.buttonGroup.add(dummyButton);
10281044 */
1029
- cGridBag copyOptionsPanel = new cGridBag();
1045
+ cGridBag versionManagerPanel = new cGridBag();
10301046
1031
- copyOptionsPanel.preferredHeight = 2;
1047
+ versionManagerPanel.preferredHeight = 4;
10321048
10331049 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
10341050
....@@ -1055,25 +1071,29 @@
10551071 // }
10561072 // });
10571073
1058
- oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1074
+ oe.toolbarPanel.add(fullScreenButton = GetButton("icons/fullscreen.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1075
+ fullScreenButton.setToolTipText("Full-screen window");
1076
+ fullScreenButton.addActionListener(this);
1077
+
1078
+ oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10591079 collapseButton.setToolTipText("Collapse toolbar");
10601080 collapseButton.addActionListener(this);
10611081
1062
- oe.toolbarPanel.add(maximize3DButton = GetButton("", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1063
- maximize3DButton.setToolTipText("Maximize 3D view");
1064
- maximize3DButton.addActionListener(this);
1082
+// oe.toolbarPanel.add(maximize3DButton = GetButton("icons/square.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1083
+// maximize3DButton.setToolTipText("Maximize 3D view");
1084
+// maximize3DButton.addActionListener(this);
10651085
1066
- oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1086
+ oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10671087 twoButton.setToolTipText("Show 3D view only");
10681088 twoButton.addActionListener(this);
10691089 this.fullscreenLayout = twoButton;
10701090
1071
- oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1091
+ oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10721092 threeButton.setToolTipText("Show controls and 3D view");
10731093 threeButton.addActionListener(this);
10741094 if (Globals.ADVANCED)
10751095 {
1076
- oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1096
+ oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10771097 sixButton.setToolTipText("Show 3D view and controls");
10781098 sixButton.addActionListener(this);
10791099 }
....@@ -1082,50 +1102,47 @@
10821102 // sevenButton.addActionListener(this);
10831103 //
10841104
1085
- oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1086
- fullButton.setToolTipText("Full-screen window");
1087
- fullButton.addActionListener(this);
1088
-
1089
- oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1105
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10901106 screenfitButton.setToolTipText("Screen fit");
10911107 screenfitButton.addActionListener(this);
10921108
1093
- oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1109
+ oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10941110 restoreCameraButton.setToolTipText("Restore viewpoint");
10951111 restoreCameraButton.addActionListener(this);
10961112
1097
- copyOptionsPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1113
+ versionManagerPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10981114 saveVersionButton.setToolTipText("Duplicate current version");
10991115 saveVersionButton.addActionListener(this);
11001116
1101
- copyOptionsPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1117
+ versionManagerPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11021118 deleteVersionButton.setToolTipText("Delete current version");
11031119 deleteVersionButton.addActionListener(this);
1120
+ deleteVersionButton.setEnabled(false);
11041121
1105
- copyOptionsPanel.add(previousVersionButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1122
+ versionManagerPanel.add(previousVersionButton = GetButton("icons/undo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11061123 previousVersionButton.setToolTipText("Previous version");
11071124 previousVersionButton.addActionListener(this);
11081125 previousVersionButton.setEnabled(false);
11091126
11101127 cGridBag updown = new cGridBag().setVertical(true);
1111
- updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1128
+ updown.add(restoreButton = GetButton("icons/restore.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11121129 restoreButton.setToolTipText("Undo (restore current version)");
11131130 restoreButton.addActionListener(this);
1114
- //restoreButton.setEnabled(false);
1131
+ restoreButton.setEnabled(false);
11151132
1116
- updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1133
+ updown.add(replaceButton = GetButton("icons/replace.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11171134 replaceButton.setToolTipText("Save (replace current version)");
11181135 replaceButton.addActionListener(this);
1119
- //replaceButton.setEnabled(false);
1136
+ replaceButton.setEnabled(false);
11201137
1121
- copyOptionsPanel.add(updown);
1138
+ versionManagerPanel.add(updown);
11221139
1123
- copyOptionsPanel.add(nextVersionButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1140
+ versionManagerPanel.add(nextVersionButton = GetButton("icons/redo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11241141 nextVersionButton.setToolTipText("Next version");
11251142 nextVersionButton.addActionListener(this);
11261143 nextVersionButton.setEnabled(false);
11271144
1128
- oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1145
+ oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11291146 oneStepButton.setToolTipText("Animate one step forward");
11301147 oneStepButton.addActionListener(this);
11311148
....@@ -1148,11 +1165,11 @@
11481165
11491166 if (Globals.ADVANCED)
11501167 {
1151
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1168
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11521169 snapobjectButton.addActionListener(this);
11531170 snapobjectButton.setToolTipText("Snap Object");
11541171
1155
- oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1172
+ oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11561173 fourButton.addActionListener(this);
11571174 fourButton.setToolTipText("Show control panel only");
11581175 }
....@@ -1160,11 +1177,11 @@
11601177 //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
11611178
11621179
1163
- oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1180
+ oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11641181 rootButton.setToolTipText("Open selection in new tab");
11651182 rootButton.addActionListener(this);
11661183
1167
- oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1184
+ oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11681185 closeButton.setToolTipText("Close tab");
11691186 closeButton.addActionListener(this);
11701187 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -1173,38 +1190,38 @@
11731190 cGridBag row1 = new cGridBag();
11741191
11751192 // INSERT
1176
- row1.add(gridButton = GetButton("icons/grid.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1193
+ row1.add(gridButton = GetButton("icons/grid.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11771194 gridButton.setToolTipText("Create ground");
11781195 gridButton.addActionListener(this);
11791196
1180
- row1.add(boxButton = GetButton("icons/box.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1197
+ row1.add(boxButton = GetButton("icons/box.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11811198 boxButton.setToolTipText("Create box");
11821199 boxButton.addActionListener(this);
11831200
1184
- row1.add(sphereButton = GetButton("icons/sphere.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1185
- sphereButton.setToolTipText("Create sphere");
1186
- sphereButton.addActionListener(this);
1187
-
1188
- row1.add(coneButton = GetButton("icons/cone.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1189
- coneButton.setToolTipText("Create cone");
1190
- coneButton.addActionListener(this);
1191
-
1192
- row1.add(torusButton = GetButton("icons/torus.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1193
- torusButton.setToolTipText("Create torus");
1194
- torusButton.addActionListener(this);
1195
-
1196
- row1.add(superButton = GetButton("icons/super.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1201
+ row1.add(superButton = GetButton("icons/super.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11971202 superButton.setToolTipText("Create superellipsoid");
11981203 superButton.addActionListener(this);
11991204
1200
- if (Globals.ADVANCED)
1205
+ row1.add(sphereButton = GetButton("icons/sphere.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1206
+ sphereButton.setToolTipText("Create sphere");
1207
+ sphereButton.addActionListener(this);
1208
+
1209
+ row1.add(coneButton = GetButton("icons/cone.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1210
+ coneButton.setToolTipText("Create cone");
1211
+ coneButton.addActionListener(this);
1212
+
1213
+ row1.add(torusButton = GetButton("icons/torus.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1214
+ torusButton.setToolTipText("Create torus");
1215
+ torusButton.addActionListener(this);
1216
+
1217
+ if (false) //Globals.ADVANCED)
12011218 {
1202
- oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1219
+ oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12031220 kleinButton.setToolTipText("Create Klein bottle");
12041221 kleinButton.addActionListener(this);
12051222 }
12061223
1207
- row1.add(particlesButton = GetButton("icons/particles.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1224
+ row1.add(particlesButton = GetButton("icons/particles.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12081225 particlesButton.setToolTipText("Create particle system");
12091226 particlesButton.addActionListener(this);
12101227
....@@ -1212,31 +1229,31 @@
12121229
12131230 cGridBag row2 = new cGridBag();
12141231
1215
- row2.add(groupButton = GetButton("icons/group.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1232
+ row2.add(groupButton = GetButton("icons/group.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12161233 groupButton.setToolTipText("Create group");
12171234 groupButton.addActionListener(this);
12181235
1219
- row2.add(compositeButton = GetButton("icons/composite.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1236
+ row2.add(compositeButton = GetButton("icons/composite.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12201237 compositeButton.setToolTipText("Create composite");
12211238 compositeButton.addActionListener(this);
12221239
1223
- row2.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1240
+ row2.add(switchButton = GetButton("icons/switch.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12241241 switchButton.setToolTipText("Create item switcher");
12251242 switchButton.addActionListener(this);
12261243
1227
- row2.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1244
+ row2.add(loopButton = GetButton("icons/loop.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12281245 loopButton.setToolTipText("Create loop");
12291246 loopButton.addActionListener(this);
12301247
1231
- row2.add(textureButton = GetButton("icons/texture.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1248
+ row2.add(textureButton = GetButton("icons/texture.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12321249 textureButton.setToolTipText("Create texture");
12331250 textureButton.addActionListener(this);
12341251
1235
- row2.add(overlayButton = GetButton("icons/overlay.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1252
+ row2.add(overlayButton = GetButton("icons/overlay.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12361253 overlayButton.setToolTipText("Create overlay");
12371254 overlayButton.addActionListener(this);
12381255
1239
- row2.add(lightButton = GetButton("icons/light-bulb.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1256
+ row2.add(lightButton = GetButton("icons/light-bulb.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12401257 lightButton.setToolTipText("Create light");
12411258 lightButton.addActionListener(this);
12421259
....@@ -1246,6 +1263,11 @@
12461263
12471264 CreateTexturePanel(textures);
12481265
1266
+ int tabCount = resourcecontainer.getTabCount();
1267
+
1268
+ if (tabCount > 0)
1269
+ resourcecontainer.setSelectedIndex((int)(Math.random() * tabCount));
1270
+
12491271 oe.toolboxPanel.add(textures);
12501272
12511273 textures.preferredHeight = 100;
....@@ -1253,11 +1275,11 @@
12531275 CreateSkyboxPanel(oe.skyboxPanel);
12541276
12551277 // EDIT panel
1256
- editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1278
+ editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12571279 editButton.setToolTipText("Pin selection controls");
12581280 editButton.addActionListener(this);
12591281
1260
- editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1282
+ editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12611283 uneditButton.setToolTipText("Unpin and remove selection controls");
12621284 uneditButton.addActionListener(this);
12631285
....@@ -1265,7 +1287,7 @@
12651287 allParamsButton.setToolTipText("Show all controls");
12661288 allParamsButton.addActionListener(this);
12671289
1268
- editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1290
+ editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12691291 clearPanelButton.setToolTipText("Clear all controls");
12701292 clearPanelButton.addActionListener(this);
12711293
....@@ -1273,7 +1295,7 @@
12731295 //unselectButton.setToolTipText("Unselect");
12741296 //unselectButton.addActionListener(this);
12751297
1276
- editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1298
+ editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12771299 flashSelectionButton.setToolTipText("Highlight selection");
12781300 flashSelectionButton.addActionListener(this);
12791301
....@@ -1296,6 +1318,8 @@
12961318
12971319 cGridBag jSPPanel = new cGridBag();
12981320
1321
+ jSPPanel.preferredHeight = 20;
1322
+
12991323 JScrollPane jSP;
13001324 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
13011325 jSPPanel.add(jSP = new JScrollPane(oe.jTree)); //, oe.aConstraints);
....@@ -1304,11 +1328,11 @@
13041328 oe.treePanel.add(jSPPanel);
13051329 oe.treePanel.Return();
13061330
1307
- oe.treePanel.add(copyOptionsPanel);
1331
+ oe.treePanel.add(versionManagerPanel);
13081332 oe.treePanel.Return();
1309
- cGridBag sliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1310
- versionSlider = (cNumberSlider)sliderPane.getComponent(1);
1311
- sliderPane.preferredHeight = 1;
1333
+ versionSliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1334
+ versionSlider = (cNumberSlider)versionSliderPane.getComponent(1);
1335
+ versionSliderPane.preferredHeight = 3;
13121336
13131337 // mainPanel.setDividerLocation(0.1); //1.0);
13141338 mainPanel.setResizeWeight(0.4);
....@@ -1466,7 +1490,7 @@
14661490
14671491 void EditObject(Object3D obj)
14681492 {
1469
- assert(obj instanceof Composite);
1493
+ //assert(obj instanceof Composite);
14701494
14711495 // if (obj.versionlist == null)
14721496 // {
....@@ -1498,6 +1522,7 @@
14981522
14991523 oe.SetupViews();
15001524
1525
+ if (Globals.DEBUG)
15011526 System.out.println("SetupViews");
15021527 DragSource.getDefaultDragSource().createDefaultDragGestureRecognizer(
15031528 oe.cameraView, DnDConstants.ACTION_COPY_OR_MOVE, this); // ACTION_LINK ??
....@@ -2101,24 +2126,24 @@
21012126 switch(axis)
21022127 {
21032128 case 0 :
2104
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2105
- vert2.x = minima.x; vert2.y = maxima.y; vert2.z = minima.z;
2106
- vert3.x = minima.x; vert3.y = minima.y; vert3.z = maxima.z;
2107
- vert4.x = minima.x; vert4.y = maxima.y; vert4.z = maxima.z;
2129
+ vert1.x = minima.x + 0.001f; vert1.y = minima.y; vert1.z = minima.z;
2130
+ vert2.x = minima.x + 0.001f; vert2.y = maxima.y; vert2.z = minima.z;
2131
+ vert3.x = minima.x + 0.001f; vert3.y = minima.y; vert3.z = maxima.z;
2132
+ vert4.x = minima.x + 0.001f; vert4.y = maxima.y; vert4.z = maxima.z;
21082133 norm = cVector.X;
21092134 break;
21102135 case 1 :
2111
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2112
- vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z;
2113
- vert3.x = minima.x; vert3.y = minima.y; vert3.z = maxima.z;
2114
- vert4.x = maxima.x; vert4.y = minima.y; vert4.z = maxima.z;
2136
+ vert1.x = minima.x; vert1.y = minima.y + 0.001f; vert1.z = minima.z;
2137
+ vert2.x = maxima.x; vert2.y = minima.y + 0.001f; vert2.z = minima.z;
2138
+ vert3.x = minima.x; vert3.y = minima.y + 0.001f; vert3.z = maxima.z;
2139
+ vert4.x = maxima.x; vert4.y = minima.y + 0.001f; vert4.z = maxima.z;
21152140 norm = cVector.Y;
21162141 break;
21172142 case 2 :
2118
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2119
- vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z;
2120
- vert3.x = minima.x; vert3.y = maxima.y; vert3.z = minima.z;
2121
- vert4.x = maxima.x; vert4.y = maxima.y; vert4.z = minima.z;
2143
+ vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z + 0.001f;
2144
+ vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z + 0.001f;
2145
+ vert3.x = minima.x; vert3.y = maxima.y; vert3.z = minima.z + 0.001f;
2146
+ vert4.x = maxima.x; vert4.y = maxima.y; vert4.z = minima.z + 0.001f;
21222147 norm = cVector.Z;
21232148 break;
21242149 }
....@@ -2159,7 +2184,11 @@
21592184 shadow.material = new cMaterial(obj.material);
21602185 shadow.material.diffuse = 0.0001f;
21612186 shadow.material.specular = 0.0001f;
2162
- //shadow.projectedVertices[1].x = 300;
2187
+ shadow.material.opacity = 0.75f;
2188
+
2189
+ AllocProjectedVertices(shadow);
2190
+
2191
+ shadow.projectedVertices[1].x = 300;
21632192
21642193 makeSomething(shadow);
21652194 }
....@@ -2680,27 +2709,35 @@
26802709 } else
26812710 if (source == loopItem || source == loopButton)
26822711 {
2712
+ if (!group.selection.isEmpty())
2713
+ {
26832714 Composite csg = new GroupLeaf();
2684
- csg.count = 5;
26852715 group(csg);
2716
+ csg.count = 5;
26862717 Composite child = new cGroup("Branch");
26872718 csg.addChild(child);
26882719 child.addChild(csg);
2720
+ }
26892721 } else
26902722 if (source == doubleItem)
26912723 {
2724
+ if (!group.selection.isEmpty())
2725
+ {
26922726 Composite csg = new GroupLeaf("Fork");
2693
- csg.count = 5;
26942727 group(csg);
2728
+ csg.count = 5;
26952729 Composite child = new cGroup("Branch A");
26962730 csg.addChild(child);
26972731 child.addChild(csg);
26982732 child = new cGroup("Branch B");
26992733 csg.addChild(child);
27002734 child.addChild(csg);
2735
+ }
27012736 } else
27022737 if (source == tripleItem)
27032738 {
2739
+ if (!group.selection.isEmpty())
2740
+ {
27042741 Composite csg = new GroupLeaf("Trident");
27052742 csg.count = 4;
27062743 group(csg);
....@@ -2713,6 +2750,7 @@
27132750 child = new cGroup();
27142751 csg.addChild(child);
27152752 child.addChild(csg);
2753
+ }
27162754 } else
27172755 if (source == computeAOItem)
27182756 {
....@@ -2759,7 +2797,7 @@
27592797 {
27602798 Maximize();
27612799 } else
2762
- if (source == fullButton)
2800
+ if (source == fullScreenButton)
27632801 {
27642802 ToggleFullScreen();
27652803 } else
....@@ -2768,13 +2806,13 @@
27682806 this.expandedLayout = radio.layout;
27692807 CollapseToolbar();
27702808 } else
2771
- if (source == maximize3DButton)
2772
- {
2773
- this.expandedLayout = radio.layout;
2774
- radio.layout = twoButton;
2775
- Show3DView();
2776
- CollapseToolbar();
2777
- } else
2809
+// if (source == maximize3DButton)
2810
+// {
2811
+// this.expandedLayout = radio.layout;
2812
+// radio.layout = twoButton;
2813
+// CollapseToolbar();
2814
+// Show3DView();
2815
+// } else
27782816 if (source == previousVersionButton)
27792817 {
27802818 // Go to previous version
....@@ -3348,22 +3386,34 @@
33483386 } else
33493387 if (source == ungroupItem || source == ungroupButton)
33503388 {
3351
- boolean hasRoot = false;
3389
+ boolean canUngroup = true;
33523390
33533391 for (int i=0; i<group.selection.size(); i++)
33543392 {
3355
- if (group.selection.get(i) == group)
3393
+ Object3D selectedItem = group.selection.get(i);
3394
+
3395
+ if (selectedItem.Size() == 0)
33563396 {
3357
- hasRoot = true;
3397
+ // Cannot ungroup leaves
3398
+ canUngroup = false;
3399
+ break;
3400
+ }
3401
+
3402
+ if (selectedItem == group)
3403
+ {
3404
+ // Cannot ungroup root
3405
+ canUngroup = false;
33583406 break;
33593407 }
33603408 }
33613409
3362
- if (!hasRoot)
3410
+ if (canUngroup)
33633411 {
33643412 for (int i=0; i<group.selection.size(); i++)
33653413 {
3366
- Ungroup(group.selection.get(i));
3414
+ Object3D selectedItem = group.selection.get(i);
3415
+
3416
+ Ungroup(selectedItem);
33673417 }
33683418
33693419 ClearSelection(false);
....@@ -3414,6 +3464,10 @@
34143464 if (source == clearMaterialsItem)
34153465 {
34163466 ClearMaterials();
3467
+ } else
3468
+ if (source == clearVersionsItem)
3469
+ {
3470
+ ClearVersions();
34173471 } else
34183472 if (source == liveleavesItem)
34193473 {
....@@ -3554,6 +3608,18 @@
35543608 if (source == transformChildrenItem)
35553609 {
35563610 TransformChildren();
3611
+ } else
3612
+ if (source == textureRatioRItem)
3613
+ {
3614
+ TextureRatio(0);
3615
+ } else
3616
+ if (source == textureRatioGItem)
3617
+ {
3618
+ TextureRatio(1);
3619
+ } else
3620
+ if (source == textureRatioBItem)
3621
+ {
3622
+ TextureRatio(2);
35573623 } else
35583624 if (source == resetTransformItem)
35593625 {
....@@ -3927,6 +3993,9 @@
39273993 if (source == closeButton)
39283994 {
39293995 //System.out.println("CLOSE: " + buttonGroup.getSelection());
3996
+ if (copy.versionlist != null)
3997
+ Replace();
3998
+
39303999 cRadio ab;
39314000 for (Enumeration e = buttonGroup.getElements(); e.hasMoreElements();)
39324001 {
....@@ -4025,6 +4094,9 @@
40254094 } else
40264095 if(source instanceof cRadio)
40274096 {
4097
+ if (copy.versionlist != null)
4098
+ Replace();
4099
+
40284100 group.parent = keepparent;
40294101 group.attributes = 0;
40304102 //group.editWindow = null;
....@@ -4076,14 +4148,28 @@
40764148 */
40774149 radio.layout.doClick();
40784150
4079
- assert(copy instanceof Composite);
4151
+ //assert(copy instanceof Composite);
40804152
40814153 if (copy.versionlist == null)
40824154 {
4083
- copy.versionlist = new Object3D[100];
40844155 copy.versionindex = -1;
40854156
4086
- Save(true);
4157
+ // Cannot work with loops
4158
+ // To fix this issue, we first mark all nodes above the root,
4159
+ // and check if any of these nodes are reachable below the root.
4160
+ Grafreed.grafreed.universe.TagObjects(copy, true);
4161
+
4162
+ if (copy instanceof Composite && !copy.HasTags())
4163
+ {
4164
+ if (copy.versionlist == null)
4165
+ copy.versionlist = new Object3D[100];
4166
+
4167
+ //Save(true);
4168
+ }
4169
+ else
4170
+ copy.versionindex = -2;
4171
+
4172
+ Grafreed.grafreed.universe.TagObjects(copy, false);
40874173 }
40884174
40894175 SetVersionStates();
....@@ -4201,6 +4287,18 @@
42014287 refreshContents();
42024288 }
42034289
4290
+ void TextureRatio(int axis)
4291
+ {
4292
+ Object3D obj;
4293
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
4294
+ {
4295
+ obj = (Object3D)e.nextElement();
4296
+ obj.TextureRatio(axis);
4297
+ }
4298
+
4299
+ refreshContents();
4300
+ }
4301
+
42044302 void ResetTransform()
42054303 {
42064304 ResetTransform(-1);
....@@ -4216,42 +4314,8 @@
42164314 if (obj.toParent == null)
42174315 continue;
42184316
4219
- if (mask == -1)
4220
- {
4221
- if (obj instanceof Camera) // jan 2014
4222
- {
4223
- LA.matIdentity(obj.toParent);
4224
- LA.matIdentity(obj.fromParent);
4225
- }
4226
- else
4227
- {
4228
- obj.toParent = null; // jan 2014 LA.matIdentity(obj.toParent);
4229
- obj.fromParent = null; // LA.matIdentity(obj.fromParent);
4230
- }
4231
- TouchTransform(obj);
4232
- continue;
4233
- }
4234
- if ((mask&2) != 0) // Scale
4235
- {
4236
- obj.toParent[0][0] = obj.toParent[1][1] = obj.toParent[2][2] = 1;
4237
- obj.toParent[0][1] = obj.toParent[1][0] = obj.toParent[2][0] = 0;
4238
- obj.toParent[0][2] = obj.toParent[1][2] = obj.toParent[2][1] = 0;
4239
- obj.fromParent[0][0] = obj.fromParent[1][1] = obj.fromParent[2][2] = 1;
4240
- obj.fromParent[0][1] = obj.fromParent[1][0] = obj.fromParent[2][0] = 0;
4241
- obj.fromParent[0][2] = obj.fromParent[1][2] = obj.fromParent[2][1] = 0;
4242
- }
4243
- if ((mask&4) != 0) // Rotation
4244
- {
4245
- // ?
4246
- }
4247
- if ((mask&1) != 0) // Translation
4248
- {
4249
- if (obj.toParent != null)
4250
- {
4251
- obj.toParent[3][0] = obj.toParent[3][1] = obj.toParent[3][2] = 0;
4252
- obj.fromParent[3][0] = obj.fromParent[3][1] = obj.fromParent[3][2] = 0;
4253
- }
4254
- }
4317
+ obj.ResetTransform(mask);
4318
+
42554319 if (obj.parent == null)
42564320 {
42574321 System.out.println("NULL PARENT!");
....@@ -4760,6 +4824,12 @@
47604824 {
47614825 Object3D obj = group.selection.get(i);
47624826
4827
+ if (obj.toParent == null)
4828
+ {
4829
+ obj.toParent = LA.newMatrix();
4830
+ obj.fromParent = LA.newMatrix();
4831
+ }
4832
+
47634833 LA.matTranslate(obj.toParent, i * scale, 0, 0);
47644834 LA.matTranslateInv(obj.fromParent, -i * scale, 0, 0);
47654835 }
....@@ -5051,6 +5121,12 @@
50515121 refreshContents();
50525122 }
50535123
5124
+ void ClearVersions()
5125
+ {
5126
+ group.selection.ClearVersions();
5127
+ refreshContents();
5128
+ }
5129
+
50545130 void FlipV(boolean flip)
50555131 {
50565132 group.selection.FlipV(flip);
....@@ -5289,7 +5365,7 @@
52895365 if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
52905366 // a camera
52915367 {
5292
- if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crash the camera because of invalid lightspace
5368
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crashes the camera because of invalid lightspace
52935369 {
52945370 CameraPane.camerachangeframe = 0; // don't refuse it
52955371 Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
....@@ -5328,18 +5404,20 @@
53285404 if (group.selection != null)
53295405 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
53305406 {
5331
- if (!(e.nextElement() instanceof Composite))
5407
+ Object next = e.nextElement();
5408
+ if (!(next instanceof Composite)) // || (next instanceof GroupLeaf))
53325409 {
53335410 allComposites = false;
53345411 break;
53355412 }
53365413 }
53375414
5338
- rootButton.setEnabled(allComposites);
5415
+ rootButton.setEnabled(true); // allComposites);
53395416 }
53405417
53415418 void refreshContents(boolean cp)
53425419 {
5420
+ if (Globals.SHOWINFO)
53435421 //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
53445422 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
53455423 {
....@@ -6233,11 +6311,11 @@
62336311 private MenuItem lookAtItem;
62346312 private MenuItem lookFromItem;
62356313 private MenuItem switchViewItem;
6236
- private MenuItem cutItem;
6314
+ private JMenuItem cutItem;
62376315 private MenuItem undoItem;
62386316 private MenuItem redoItem;
62396317 private JMenuItem duplicateItem;
6240
- private MenuItem cloneItem;
6318
+ private JMenuItem cloneItem;
62416319 private MenuItem cloneSupportItem;
62426320 private MenuItem overwriteGeoItem;
62436321 private MenuItem overwriteMatItem;
....@@ -6258,13 +6336,13 @@
62586336 private MenuItem cloneGeometriesItem;
62596337 private MenuItem shareGeometriesItem;
62606338 private MenuItem mergeGeometriesItem;
6261
- private MenuItem copyItem;
6339
+ private JMenuItem copyItem;
62626340 private MenuItem pasteItem;
6263
- private MenuItem pasteIntoItem;
6264
- private MenuItem pasteLinkItem;
6265
- private MenuItem pasteCloneItem;
6266
- private MenuItem pasteExpandItem;
6267
- private MenuItem deleteItem;
6341
+ private JMenuItem pasteIntoItem;
6342
+ private JMenuItem pasteLinkItem;
6343
+ private JMenuItem pasteCloneItem;
6344
+ private JMenuItem pasteExpandItem;
6345
+ private JMenuItem deleteItem;
62686346 private MenuItem clearAllItem;
62696347 private MenuItem genUVItem;
62706348 private MenuItem genNormalsMESHItem;
....@@ -6290,6 +6368,7 @@
62906368 private MenuItem clipMeshItem;
62916369 private MenuItem smoothMeshItem;
62926370 private MenuItem clearMaterialsItem;
6371
+ private MenuItem clearVersionsItem;
62936372
62946373 private MenuItem liveleavesItem;
62956374 private MenuItem unliveleavesItem;
....@@ -6313,13 +6392,16 @@
63136392 private MenuItem maxTexturesItem;
63146393 private MenuItem panoTexturesItem;
63156394
6395
+ private MenuItem textureRatioRItem;
6396
+ private MenuItem textureRatioGItem;
6397
+ private MenuItem textureRatioBItem;
63166398 private MenuItem resetCentroidItem;
63176399 private MenuItem resetCentroidXZItem;
63186400 private MenuItem resetTransformItem;
63196401 private MenuItem transformGeometryItem;
63206402 private MenuItem transformChildrenItem;
63216403 private MenuItem hideItem;
6322
- private MenuItem grabItem;
6404
+ private JMenuItem grabItem;
63236405 private MenuItem backItem;
63246406 private MenuItem frontItem;
63256407 private MenuItem cameraItem;
....@@ -6332,7 +6414,7 @@
63326414 private MenuItem switchTransfoItem;
63336415 private MenuItem morphItem;
63346416 private MenuItem linkerItem;
6335
- private MenuItem ungroupItem;
6417
+ private JMenuItem ungroupItem;
63366418 private MenuItem editItem;
63376419 private MenuItem openWindowItem;
63386420 private MenuItem editLeafItem;