Normand Briere
2019-08-17 07c0c67b88160b51e61c5c1d2b9b602daafa44a9
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
....@@ -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;