Normand Briere
2019-05-02 a7277e6c6381e55761f7fa87276260fac1c94d5e
GroupEditor.java
....@@ -150,6 +150,8 @@
150150
151151 void SetupMenu2(ObjEditor oe)
152152 {
153
+ if (Globals.ADVANCED)
154
+ {
153155 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
154156 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
155157 //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
....@@ -161,17 +163,21 @@
161163 lookAtItem.addActionListener(this);
162164 //lookFromItem.addActinoListener(this);
163165 //switchItem.addActionListener(this);
166
+ }
167
+
164168 Menu menu;
165169 oe.menuBar.add(menu = new Menu("Edit"));
166170 //editItem = menu.add(new MenuItem("Edit"));
167171 //editItem.addActionListener(this);
168172 duplicateItem = menu.add(new MenuItem("Duplicate"));
169173 duplicateItem.addActionListener(this);
170
- menu.add("-");
171174 cloneItem = menu.add(new MenuItem("Clone"));
172175 cloneItem.addActionListener(this);
176
+ if (Globals.ADVANCED)
177
+ {
173178 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
174179 cloneSupportItem.addActionListener(this);
180
+ }
175181 menu.add("-");
176182 cutItem = menu.add(new MenuItem("Cut"));
177183 cutItem.addActionListener(this);
....@@ -179,18 +185,31 @@
179185 copyItem.addActionListener(this);
180186 pasteItem = menu.add(new MenuItem("Paste"));
181187 pasteItem.addActionListener(this);
188
+ menu.add("-");
189
+
190
+ menu.add("-");
191
+ pasteIntoItem = menu.add(new MenuItem("Paste into"));
192
+ pasteIntoItem.addActionListener(this);
182193 pasteLinkItem = menu.add(new MenuItem("Paste link"));
183194 pasteLinkItem.addActionListener(this);
184195 pasteCloneItem = menu.add(new MenuItem("Paste clone"));
185196 pasteCloneItem.addActionListener(this);
186197 // pasteExpandItem = menu.add(new MenuItem("Paste expand"));
187198 // pasteExpandItem.addActionListener(this);
199
+ menu.add("-");
188200 clearItem = menu.add(new MenuItem("Clear"));
189201 clearItem.addActionListener(this);
202
+
203
+ if (Globals.ADVANCED)
204
+ {
205
+ // Deletes the cameras...
190206 clearAllItem = menu.add(new MenuItem("Clear All"));
191207 clearAllItem.addActionListener(this);
208
+ }
192209
193210 oe.menuBar.add(menu = new Menu("Setting"));
211
+ if (Globals.ADVANCED)
212
+ {
194213 resetMeshItem = menu.add(new MenuItem("Reset All"));
195214 resetMeshItem.addActionListener(this);
196215 stepAllItem = menu.add(new MenuItem("Step All"));
....@@ -200,6 +219,7 @@
200219 resetreferencesItem = menu.add(new MenuItem("Reset Mesh References"));
201220 resetreferencesItem.addActionListener(this);
202221 menu.add("-");
222
+ }
203223 overwriteGeoItem = menu.add(new MenuItem("Overwrite Geometry"));
204224 overwriteGeoItem.addActionListener(this);
205225 overwriteMatItem = menu.add(new MenuItem("Overwrite Material"));
....@@ -211,19 +231,26 @@
211231 overwriteUVItem = menu.add(new MenuItem("Overwrite UV"));
212232 overwriteUVItem.addActionListener(this);
213233 menu.add("-");
234
+ if (Globals.ADVANCED)
235
+ {
214236 generateMeshItem = menu.add(new MenuItem("Generate Meshes"));
215237 generateMeshItem.addActionListener(this);
216238 poseMeshItem = menu.add(new MenuItem("Set Pose Meshes"));
217239 poseMeshItem.addActionListener(this);
218240 menu.add("-");
241
+ }
219242 resetsupportItem = menu.add(new MenuItem("Reset support"));
220243 resetsupportItem.addActionListener(this);
221244 linkverticesItem = menu.add(new MenuItem("Link to Support"));
222245 linkverticesItem.addActionListener(this);
223246 relinkverticesItem = menu.add(new MenuItem("Re-link to Support"));
224247 relinkverticesItem.addActionListener(this);
248
+
249
+ if (Globals.ADVANCED)
250
+ {
225251 setMasterItem = menu.add(new MenuItem("Set Master Mesh"));
226252 setMasterItem.addActionListener(this);
253
+ }
227254
228255 oe.menuBar.add(menu = new Menu("Group"));
229256 grabItem = menu.add(new MenuItem("Grab"));
....@@ -234,27 +261,32 @@
234261 frontItem.addActionListener(this);
235262 compositeItem = menu.add(new MenuItem("Composite"));
236263 compositeItem.addActionListener(this);
237
- hideItem = menu.add(new MenuItem("Hide"));
264
+ hideItem = menu.add(new MenuItem("Hidden Group"));
238265 hideItem.addActionListener(this);
239266 ungroupItem = menu.add(new MenuItem("Ungroup"));
240267 ungroupItem.addActionListener(this);
241268 menu.add("-");
242
- randomItem = menu.add(new MenuItem("Random"));
269
+ randomItem = menu.add(new MenuItem("Switch node"));
243270 randomItem.addActionListener(this);
244
- physicsItem = menu.add(new MenuItem("Physics"));
245
- physicsItem.addActionListener(this);
246
- frameselectorItem = menu.add(new MenuItem("Frame Selector"));
247
- frameselectorItem.addActionListener(this);
248271 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
249272 switchGeoItem.addActionListener(this);
250273 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
251274 switchTransfoItem.addActionListener(this);
252
- morphItem = menu.add(new MenuItem("Morph"));
275
+ morphItem = menu.add(new MenuItem("Morph Group"));
253276 morphItem.addActionListener(this);
277
+
278
+ if (Globals.ADVANCED)
279
+ {
280
+ menu.add("-");
281
+ physicsItem = menu.add(new MenuItem("Physics"));
282
+ physicsItem.addActionListener(this);
283
+ frameselectorItem = menu.add(new MenuItem("Frame Selector"));
284
+ frameselectorItem.addActionListener(this);
254285 scriptNodeItem = menu.add(new MenuItem("Script Node"));
255286 scriptNodeItem.addActionListener(this);
256287 cameraItem = menu.add(new MenuItem("Camera"));
257288 cameraItem.addActionListener(this);
289
+ }
258290
259291 oe.menuBar.add(menu = new Menu("Object"));
260292 textureItem = menu.add(new MenuItem("Texture"));
....@@ -269,14 +301,18 @@
269301 shadowYItem.addActionListener(this);
270302 shadowZItem = menu.add(new MenuItem("Shadow Z"));
271303 shadowZItem.addActionListener(this);
304
+ if (Globals.ADVANCED)
305
+ {
306
+ menu.add("-");
272307 linkerItem = menu.add(new MenuItem("Linker"));
273308 linkerItem.addActionListener(this);
274
- templateItem = menu.add(new MenuItem("Template"));
275
- templateItem.addActionListener(this);
276309 attributeItem = menu.add(new MenuItem("Attribute"));
277310 attributeItem.addActionListener(this);
311
+ templateItem = menu.add(new MenuItem("Template"));
312
+ templateItem.addActionListener(this);
278313 pointflowItem = menu.add(new MenuItem("Point Flow"));
279314 pointflowItem.addActionListener(this);
315
+ }
280316 menu.add("-");
281317 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
282318 resetTransformItem.addActionListener(this);
....@@ -294,8 +330,11 @@
294330 genNormalsCADItem.addActionListener(this);
295331 genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals"));
296332 genNormalsMESHItem.addActionListener(this);
333
+ if (Globals.ADVANCED)
334
+ {
297335 genNormalsMINEItem = menu.add(new MenuItem("My Normals"));
298336 genNormalsMINEItem.addActionListener(this);
337
+ }
299338 stripifyItem = menu.add(new MenuItem("Stripify"));
300339 stripifyItem.addActionListener(this);
301340 unstripifyItem = menu.add(new MenuItem("Unstripify"));
....@@ -317,10 +356,14 @@
317356 reduce34MeshItem.addActionListener(this);
318357 increaseMeshItem = menu.add(new MenuItem("Increase mesh"));
319358 increaseMeshItem.addActionListener(this);
320
- smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
321
- smoothMeshItem.addActionListener(this);
322359 clipMeshItem = menu.add(new MenuItem("Clip mesh"));
323360 clipMeshItem.addActionListener(this);
361
+
362
+ if (Globals.ADVANCED)
363
+ {
364
+ smoothMeshItem = menu.add(new MenuItem("Smooth mesh"));
365
+ smoothMeshItem.addActionListener(this);
366
+ }
324367
325368 oe.menuBar.add(menu = new Menu("Attributes"));
326369 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
....@@ -330,10 +373,13 @@
330373 liveleavesItem.addActionListener(this);
331374 unliveleavesItem = menu.add(new MenuItem("Unlive Leaves"));
332375 unliveleavesItem.addActionListener(this);
376
+ if (Globals.ADVANCED)
377
+ {
333378 supportleavesItem = menu.add(new MenuItem("Support Leaves"));
334379 supportleavesItem.addActionListener(this);
335380 unsupportleavesItem = menu.add(new MenuItem("Unsupport Leaves"));
336381 unsupportleavesItem.addActionListener(this);
382
+ }
337383 hideleavesItem = menu.add(new MenuItem("Hide Leaves"));
338384 hideleavesItem.addActionListener(this);
339385 showleavesItem = menu.add(new MenuItem("Show Leaves"));
....@@ -376,6 +422,8 @@
376422 sortbysizeItem.addActionListener(this);
377423 sortbynameItem = menu.add(new MenuItem("Sort by name"));
378424 sortbynameItem.addActionListener(this);
425
+ if (Globals.ADVANCED)
426
+ {
379427 menu.add("-");
380428 extractGeometriesItem = menu.add(new MenuItem("Link Geometry"));
381429 extractGeometriesItem.addActionListener(this);
....@@ -385,11 +433,11 @@
385433 shareGeometriesItem.addActionListener(this);
386434 mergeGeometriesItem = menu.add(new MenuItem("Merge Geometry"));
387435 mergeGeometriesItem.addActionListener(this);
436
+ }
388437
389438 oe.menuBar.add(menu = new Menu("Insert"));
390439 buildCreateMenu(menu);
391440
392
-
393441 oe.menuBar.add(menu = new Menu("Include"));
394442 importGFDItem = menu.add(new MenuItem("GrafreeD Object..."));
395443 importGFDItem.addActionListener(this);
....@@ -440,6 +488,10 @@
440488 liveCB.setToolTipText("Enabled animation");
441489 liveCB.addItemListener(this);
442490
491
+ oe.toolbarPanel.add(oneStepButton = new cButton("Step", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
492
+ oneStepButton.setToolTipText("Animate one step forward");
493
+ oneStepButton.addActionListener(this);
494
+
443495 oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
444496 fastCB.setToolTipText("Fast mode");
445497 fastCB.addItemListener(this);
....@@ -454,17 +506,14 @@
454506
455507 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
456508 // screenfitpointButton.addActionListener(this);
457
-// oe.aConstraints.gridx += 1;
458
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
459
- snapobjectButton.addActionListener(this);
460
- snapobjectButton.setToolTipText("Snap Object");
461
- oe.aConstraints.gridx += 1;
462509
463
- //aConstraints.gridx = 0;
464
- //aConstraints.gridy += 1;
465
- oe.aConstraints.weighty = 0;
466
- oe.aConstraints.gridwidth = 1;
467
-
510
+ if (Globals.ADVANCED)
511
+ {
512
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
513
+ snapobjectButton.addActionListener(this);
514
+ snapobjectButton.setToolTipText("Snap Object");
515
+ }
516
+
468517 oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
469518 flashSelectionButton.setToolTipText("Show selection");
470519 flashSelectionButton.addActionListener(this);
....@@ -508,13 +557,13 @@
508557 uneditButton.setToolTipText("Unedit selection");
509558 uneditButton.addActionListener(this);
510559
560
+ commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
561
+ allParamsButton.setToolTipText("Edit all params");
562
+ allParamsButton.addActionListener(this);
563
+
511564 commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
512565 clearPanelButton.setToolTipText("Clear edit panel");
513566 clearPanelButton.addActionListener(this);
514
-
515
- commandsPanel.add(allParamsButton = new cButton("A", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
516
- allParamsButton.setToolTipText("All params??");
517
- allParamsButton.addActionListener(this);
518567
519568 commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
520569 unselectButton.setToolTipText("Unselect");
....@@ -591,8 +640,18 @@
591640
592641 void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
593642 {
643
+ panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
644
+ boxCB.setToolTipText("Display bounding boxes");
645
+ boxCB.addItemListener(this);
646
+
647
+ panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
648
+ zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
649
+ zoomBoxCB.addItemListener(this);
650
+
651
+ if (Globals.ADVANCED)
652
+ {
594653 panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
595
- supportCB.setToolTipText("Enabled rigging");
654
+ supportCB.setToolTipText("Enable rigging");
596655 supportCB.addItemListener(this);
597656
598657 // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
....@@ -610,14 +669,6 @@
610669 slowCB.setToolTipText("Smooth interpolation");
611670 slowCB.addItemListener(this);
612671
613
- panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
614
- boxCB.setToolTipText("Display bounding boxes");
615
- boxCB.addItemListener(this);
616
-
617
- panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
618
- zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
619
- zoomBoxCB.addItemListener(this);
620
-
621672 // constraints.gridy += 1;
622673 // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
623674 // speakerMocapCB.addItemListener(this);
....@@ -648,6 +699,8 @@
648699 panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
649700 lookAtCB.setToolTipText("Look-at target");
650701 lookAtCB.addItemListener(this);
702
+
703
+ }
651704
652705 cGridBag fill = new cGridBag();
653706
....@@ -938,11 +991,11 @@
938991 {
939992 loadClipboard(true);
940993 objEditor.jTree.setSelectionPath(destinationPath);
941
- pasteInto(false);
994
+ pasteInto(false, false);
942995 } else {
943996 loadClipboard(false);
944997 objEditor.jTree.setSelectionPath(destinationPath);
945
- pasteInto(false); // true); // ???
998
+ pasteInto(false, false); // true); // ???
946999 }
9471000 }
9481001 public void dropActionChanged(DropTargetDragEvent dtde)
....@@ -1064,27 +1117,33 @@
10641117 kleinItem.addActionListener(this);
10651118 particleItem = menu.add(new MenuItem("Particle system"));
10661119 particleItem.addActionListener(this);
1120
+ if (Globals.ADVANCED)
1121
+ {
10671122 ragdollItem = menu.add(new MenuItem("Rag Walk"));
10681123 ragdollItem.addActionListener(this);
10691124 ragdoll2Item = menu.add(new MenuItem("Rag Fall"));
10701125 ragdoll2Item.addActionListener(this);
1126
+ }
10711127 menu.add("-");
1072
- meshItem = menu.add(new MenuItem("Mesh"));
1128
+ meshItem = menu.add(new MenuItem("Dynamic Mesh"));
10731129 meshItem.addActionListener(this);
10741130 // meshGroupItem = menu.add(new MenuItem("Mesh Group"));
10751131 // meshGroupItem.addActionListener(this);
1132
+ if (Globals.ADVANCED)
1133
+ {
10761134 springItem = menu.add(new MenuItem("Spring"));
10771135 springItem.addActionListener(this);
10781136 flagItem = menu.add(new MenuItem("Flag"));
10791137 flagItem.addActionListener(this);
1080
- bezierItem = menu.add(new MenuItem("Patch"));
1081
- bezierItem.addActionListener(this);
1082
- checkerItem = menu.add(new MenuItem("Checker"));
1083
- checkerItem.addActionListener(this);
10841138 blobItem = menu.add(new MenuItem("Blob"));
10851139 blobItem.addActionListener(this);
10861140 latheItem = menu.add(new MenuItem("Lathe"));
10871141 latheItem.addActionListener(this);
1142
+ }
1143
+ bezierItem = menu.add(new MenuItem("Bezier Patch"));
1144
+ bezierItem.addActionListener(this);
1145
+ overlayItem = menu.add(new MenuItem("Overlay"));
1146
+ overlayItem.addActionListener(this);
10881147 lightItem = menu.add(new MenuItem("Light"));
10891148 lightItem.addActionListener(this);
10901149 menu.add("-");
....@@ -1094,8 +1153,11 @@
10941153 loopItem.addActionListener(this);
10951154 doubleItem = menu.add(new MenuItem("Fork"));
10961155 doubleItem.addActionListener(this);
1156
+ if (Globals.ADVANCED)
1157
+ {
10971158 tripleItem = menu.add(new MenuItem("Trident"));
10981159 tripleItem.addActionListener(this);
1160
+ }
10991161 }
11001162
11011163 void buildToolsMenu(Menu menu)
....@@ -1109,19 +1171,21 @@
11091171 parseverticesItem.addActionListener(this);
11101172 textureFieldItem = menu.add(new MenuItem("Texture Field"));
11111173 textureFieldItem.addActionListener(this);
1112
- alignItem = menu.add(new MenuItem("Align"));
1174
+ alignItem = menu.add(new MenuItem("Align Objects"));
11131175 alignItem.addActionListener(this);
1114
- mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1115
- mirrorItem.addActionListener(this);
11161176 reduceMorphItem = menu.add(new MenuItem("Reduce Morphs"));
11171177 reduceMorphItem.addActionListener(this);
11181178 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
11191179 reduce34MorphItem.addActionListener(this);
1120
-
1180
+ menu.add("-");
11211181 menu.add(computeAOItem = new MenuItem("Compute AO"));
11221182 computeAOItem.addActionListener(this);
1123
- menu.add("-");
11241183
1184
+ if (Globals.ADVANCED)
1185
+ {
1186
+ mirrorItem = menu.add(new MenuItem("Mirror Poses"));
1187
+ mirrorItem.addActionListener(this);
1188
+ menu.add("-");
11251189 menu.add(memoryItem = new MenuItem("Memory Usage"));
11261190 memoryItem.addActionListener(this);
11271191 menu.add(analyzeItem = new MenuItem("Analyze"));
....@@ -1144,6 +1208,7 @@
11441208 menu.add("-");
11451209 menu.add(editScriptItem = new MenuItem("Edit Script..."));
11461210 editScriptItem.addActionListener(this);
1211
+ }
11471212 }
11481213
11491214 void ScreenFit()
....@@ -1645,7 +1710,7 @@
16451710 {
16461711 makeSomething(new BezierSurface());
16471712 } else
1648
- if (source == checkerItem)
1713
+ if (source == overlayItem)
16491714 {
16501715 /*
16511716 Object3D obj = new BezierSurface(5,8);
....@@ -1833,6 +1898,11 @@
18331898 {
18341899 DumpObject();
18351900 } else
1901
+ if (source == oneStepButton)
1902
+ {
1903
+ Globals.ONESTEP = true;
1904
+ cameraView.repaint();
1905
+ } else
18361906 if (source == screenfitButton)
18371907 {
18381908 //Reload(lastConverter, lastFilename, true);
....@@ -1905,13 +1975,17 @@
19051975 {
19061976 paste(false);
19071977 } else
1978
+ if (source == pasteIntoItem)
1979
+ {
1980
+ pasteInto(true, false);
1981
+ } else
19081982 if (source == pasteLinkItem)
19091983 {
1910
- pasteInto(false);
1984
+ pasteInto(false, false);
19111985 } else
19121986 if (source == pasteCloneItem)
19131987 {
1914
- pasteInto(true);
1988
+ pasteInto(true, true);
19151989 } else
19161990 if (source == pasteExpandItem)
19171991 {
....@@ -2113,11 +2187,11 @@
21132187 Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR));
21142188 for (int i=0; i<group.selection.size(); i++)
21152189 {
2116
- boolean random = CameraPane.RANDOM;
2117
- CameraPane.RANDOM = false; // parse all random nodes
2190
+ boolean random = CameraPane.SWITCH;
2191
+ CameraPane.SWITCH = false; // parse all random nodes
21182192 group.selection.get(i).linkVerticesThis(content);
21192193 // group.selection.get(i).setMasterThis(content); // should be identity
2120
- CameraPane.RANDOM = random;
2194
+ CameraPane.SWITCH = random;
21212195 }
21222196 Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR));
21232197 refreshContents();
....@@ -2127,20 +2201,20 @@
21272201 {
21282202 for (int i=0; i<group.selection.size(); i++)
21292203 {
2130
- boolean random = CameraPane.RANDOM;
2131
- CameraPane.RANDOM = false; // parse all random nodes
2204
+ boolean random = CameraPane.SWITCH;
2205
+ CameraPane.SWITCH = false; // parse all random nodes
21322206 group.selection.get(i).linkVerticesThis(null);
2133
- CameraPane.RANDOM = random;
2207
+ CameraPane.SWITCH = random;
21342208 }
21352209
21362210 refreshContents();
21372211 } else
21382212 if (source == relinkverticesItem)
21392213 {
2140
- boolean random = CameraPane.RANDOM;
2141
- CameraPane.RANDOM = false; // parse all random nodes
2214
+ boolean random = CameraPane.SWITCH;
2215
+ CameraPane.SWITCH = false; // parse all random nodes
21422216 group.selection.RelinkToSupport();
2143
- CameraPane.RANDOM = random;
2217
+ CameraPane.SWITCH = random;
21442218
21452219 refreshContents();
21462220 } else
....@@ -2238,7 +2312,7 @@
22382312 RandomNode random = new RandomNode();
22392313 group(random);
22402314 if (random.size() > 0)
2241
- random.name = random.get(0).name + "Rnd";
2315
+ random.name = random.get(0).name + "Switch";
22422316 } else
22432317 if (source == physicsItem)
22442318 {
....@@ -2895,7 +2969,7 @@
28952969
28962970 child.editWindow = null; // ???????????
28972971 }
2898
- objEditor.ctrlPanel.validate();
2972
+ objEditor.ctrlPanel.FlushUI();
28992973 //objEditor.jTree.clearSelection();
29002974 //objEditor.ResetSliders();
29012975 refreshContents(true);
....@@ -3614,11 +3688,11 @@
36143688
36153689 SwitchNode sn = new SwitchNode(poses, Object3D.GEOMETRY);
36163690
3617
- boolean random = CameraPane.RANDOM;
3618
- CameraPane.RANDOM = false; // parse all random nodes
3691
+ boolean random = CameraPane.SWITCH;
3692
+ CameraPane.SWITCH = false; // parse all random nodes
36193693 lowres.linkVerticesThis(null);
36203694 lowres.linkVerticesThis(sn);
3621
- CameraPane.RANDOM = random;
3695
+ CameraPane.SWITCH = random;
36223696
36233697 System.err.flush();
36243698
....@@ -4376,7 +4450,7 @@
43764450 refreshContents();
43774451 }
43784452
4379
- void pasteInto(boolean copyit)
4453
+ void pasteInto(boolean copyit, boolean clone)
43804454 {
43814455 // if (GrafreeD.clipboard == null)
43824456 // return;
....@@ -4405,7 +4479,14 @@
44054479 if (copyit)
44064480 {
44074481 // paste(false);
4408
- CloneClipboard(false); // sept 2014
4482
+ if (clone)
4483
+ {
4484
+ CloneClipboard(false); // sept 2014
4485
+ }
4486
+ else
4487
+ {
4488
+ paste(false);
4489
+ }
44094490 }
44104491 else
44114492 {
....@@ -4949,10 +5030,12 @@
49495030 cButton flashSelectionButton;
49505031 cButton editButton;
49515032 cButton uneditButton;
5033
+ JCheckBox allParamsButton;
49525034 cButton clearpanelButton;
4953
- cButton allParamsButton;
49545035 cButton unselectButton;
49555036
5037
+ cButton oneStepButton;
5038
+
49565039 cButton screenfitButton;
49575040 cButton screenfitpointButton;
49585041 cButton snapobjectButton;
....@@ -5007,6 +5090,7 @@
50075090 private MenuItem mergeGeometriesItem;
50085091 private MenuItem copyItem;
50095092 private MenuItem pasteItem;
5093
+ private MenuItem pasteIntoItem;
50105094 private MenuItem pasteLinkItem;
50115095 private MenuItem pasteCloneItem;
50125096 private MenuItem pasteExpandItem;
....@@ -5104,7 +5188,7 @@
51045188 private MenuItem blobItem;
51055189 private MenuItem latheItem;
51065190 private MenuItem bezierItem;
5107
- private MenuItem checkerItem;
5191
+ private MenuItem overlayItem;
51085192 private MenuItem meshItem;
51095193 // private MenuItem meshGroupItem;
51105194 private MenuItem springItem;