Normand Briere
2019-08-17 5892f05411c3d4dce2d8a59e0966dc2e1843a971
GroupEditor.java
....@@ -415,12 +415,14 @@
415415 this.copy = this.group = group;
416416 //selectees = this.group.selectees;
417417
418
+ assert(false);
419
+
418420 if (copy.versionlist == null)
419421 {
420422 copy.versionlist = new Object3D[100];
421423 copy.versionindex = -1;
422424
423
- Save(true);
425
+ //Save(true);
424426 }
425427
426428 if(ui)
....@@ -449,7 +451,7 @@
449451 copy.versionlist = new Object3D[100];
450452 copy.versionindex = -1;
451453
452
- Save(true);
454
+ //Save(true);
453455 }
454456 }
455457
....@@ -1038,7 +1040,7 @@
10381040 */
10391041 cGridBag copyOptionsPanel = new cGridBag();
10401042
1041
- copyOptionsPanel.preferredHeight = 2;
1043
+ copyOptionsPanel.preferredHeight = 3;
10421044
10431045 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
10441046
....@@ -1111,6 +1113,7 @@
11111113 copyOptionsPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
11121114 deleteVersionButton.setToolTipText("Delete current version");
11131115 deleteVersionButton.addActionListener(this);
1116
+ deleteVersionButton.setEnabled(false);
11141117
11151118 copyOptionsPanel.add(previousVersionButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
11161119 previousVersionButton.setToolTipText("Previous version");
....@@ -1121,12 +1124,12 @@
11211124 updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
11221125 restoreButton.setToolTipText("Undo (restore current version)");
11231126 restoreButton.addActionListener(this);
1124
- //restoreButton.setEnabled(false);
1127
+ restoreButton.setEnabled(false);
11251128
11261129 updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
11271130 replaceButton.setToolTipText("Save (replace current version)");
11281131 replaceButton.addActionListener(this);
1129
- //replaceButton.setEnabled(false);
1132
+ replaceButton.setEnabled(false);
11301133
11311134 copyOptionsPanel.add(updown);
11321135
....@@ -1256,6 +1259,8 @@
12561259
12571260 CreateTexturePanel(textures);
12581261
1262
+ resourcecontainer.setSelectedIndex((int)(Math.random() * resourcecontainer.getTabCount()));
1263
+
12591264 oe.toolboxPanel.add(textures);
12601265
12611266 textures.preferredHeight = 100;
....@@ -1318,7 +1323,7 @@
13181323 oe.treePanel.Return();
13191324 cGridBag sliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
13201325 versionSlider = (cNumberSlider)sliderPane.getComponent(1);
1321
- sliderPane.preferredHeight = 1;
1326
+ sliderPane.preferredHeight = 2;
13221327
13231328 // mainPanel.setDividerLocation(0.1); //1.0);
13241329 mainPanel.setResizeWeight(0.4);