Normand Briere
2019-05-01 a742f6cebf1d471217d836e07934e5c02c22b6db
GroupEditor.java
....@@ -12,6 +12,7 @@
1212 import com.jme.math.Vector3f;
1313 import com.jme.renderer.ColorRGBA;
1414
15
+import grafeme.ui.*;
1516 //import buoy.widget.BFileChooser;
1617
1718 class GroupEditor extends ObjEditor implements //iParse, //iCallBack,
....@@ -238,16 +239,16 @@
238239 ungroupItem = menu.add(new MenuItem("Ungroup"));
239240 ungroupItem.addActionListener(this);
240241 menu.add("-");
241
- randomItem = menu.add(new MenuItem("Random"));
242
+ randomItem = menu.add(new MenuItem("Switch node"));
242243 randomItem.addActionListener(this);
243
- physicsItem = menu.add(new MenuItem("Physics"));
244
- physicsItem.addActionListener(this);
245
- frameselectorItem = menu.add(new MenuItem("Frame Selector"));
246
- frameselectorItem.addActionListener(this);
247244 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
248245 switchGeoItem.addActionListener(this);
249246 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
250247 switchTransfoItem.addActionListener(this);
248
+ physicsItem = menu.add(new MenuItem("Physics"));
249
+ physicsItem.addActionListener(this);
250
+ frameselectorItem = menu.add(new MenuItem("Frame Selector"));
251
+ frameselectorItem.addActionListener(this);
251252 morphItem = menu.add(new MenuItem("Morph"));
252253 morphItem.addActionListener(this);
253254 scriptNodeItem = menu.add(new MenuItem("Script Node"));
....@@ -433,176 +434,94 @@
433434 oe.radioPanel.add(dummyButton);
434435 oe.buttonGroup.add(dummyButton);
435436 */
436
- aConstraints.gridy += 1;
437
- oe.aConstraints.gridwidth = 1;
438
- oe.aConstraints.gridx = 0;
437
+ //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
439438
440
- oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE()), oe.aConstraints);
439
+ oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
441440 liveCB.setToolTipText("Enabled animation");
442441 liveCB.addItemListener(this);
443442
444
- oe.aConstraints.gridx += 1;
445
- oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), oe.aConstraints);
443
+ oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
446444 fastCB.setToolTipText("Fast mode");
447445 fastCB.addItemListener(this);
448
- oe.aConstraints.gridx += 1;
449
- oe.toolbarPanel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT), oe.aConstraints);
450
- supportCB.setToolTipText("Enabled rigging");
451
- supportCB.addItemListener(this);
452
-
453
- // oe.aConstraints.gridx += 1;
454
- // oe.toolbarPanel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), oe.aConstraints);
455
- // localCB.addItemListener(this);
456
-
457
- oe.aConstraints.gridx += 1;
458
- oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD), oe.aConstraints);
459
- crowdCB.setToolTipText("Used for crowds");
460
- crowdCB.addItemListener(this);
461
-
462
- oe.aConstraints.gridx += 1;
463
- oe.toolbarPanel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA), oe.aConstraints);
464
- smoothCB.setToolTipText("Snapping delay");
465
- smoothCB.addItemListener(this);
466
-
467
- oe.aConstraints.gridx += 1;
468
- oe.toolbarPanel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE), oe.aConstraints);
469
- slowCB.setToolTipText("Smooth interpolation");
470
- slowCB.addItemListener(this);
471
- oe.aConstraints.gridx += 1;
472
- oe.toolbarPanel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE), oe.aConstraints);
473
- boxCB.setToolTipText("Display bounding boxes");
474
- boxCB.addItemListener(this);
475
- oe.aConstraints.gridx += 1;
476
- oe.toolbarPanel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE), oe.aConstraints);
477
- zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
478
- zoomBoxCB.addItemListener(this);
479
-
480
-// oe.aConstraints.gridx += 1;
481
-// oe.toolbarPanel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), oe.aConstraints);
482
-// speakerMocapCB.addItemListener(this);
483
-
484
- if (false)
485
- {
486
- // handled in scripts
487
- oe.aConstraints.gridx += 1;
488
- oe.toolbarPanel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA), oe.aConstraints);
489
- speakerCameraCB.addItemListener(this);
490
-
491
- oe.aConstraints.gridx += 1;
492
- oe.toolbarPanel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS), oe.aConstraints);
493
- speakerFocusCB.addItemListener(this);
494
-
495
- oe.aConstraints.gridx += 1;
496
- oe.toolbarPanel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS), oe.aConstraints);
497
- smoothfocusCB.addItemListener(this);
498
- }
499
-
500
-//oe.aConstraints.gridx += 1;
501
-//oe.toolbarPanel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), oe.aConstraints);
502
-// debugCB.addItemListener(this);
503
-
504
- oe.aConstraints.gridx += 1;
505
- oe.toolbarPanel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL), oe.aConstraints);
506
- oeilCB.addItemListener(this);
507
-
508
- oe.aConstraints.gridx += 1;
509
- oe.toolbarPanel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT), oe.aConstraints);
510
- lookAtCB.setToolTipText("Look-at target");
511
- lookAtCB.addItemListener(this);
512
-
513
- oe.aConstraints.gridx += 1;
514
- oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK), oe.aConstraints);
446
+
447
+ oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints);
515448 trackCB.setToolTipText("Enable tracking");
516449 trackCB.addItemListener(this);
517450
518
- oe.aConstraints.gridx += 1;
519
- oe.toolbarPanel.add(screenfitButton = new cButton("@ ")); //, oe.aConstraints);
451
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
520452 screenfitButton.setToolTipText("Screen fit");
521453 screenfitButton.addActionListener(this);
522
- oe.aConstraints.gridx += 1;
454
+
523455 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
524456 // screenfitpointButton.addActionListener(this);
525
-// oe.aConstraints.gridx += 1;
526
- oe.toolbarPanel.add(snapobjectButton = new cButton(" O+ ")); //, oe.aConstraints);
527
- snapobjectButton.addActionListener(this);
528
- snapobjectButton.setToolTipText("Snap Object");
529
- oe.aConstraints.gridx += 1;
530457
531
- //aConstraints.gridx = 0;
532
- //aConstraints.gridy += 1;
533
- oe.aConstraints.weighty = 0;
534
- oe.aConstraints.gridwidth = 1;
535
-
536
- oe.toolbarPanel.add(flashSelectionButton = new cButton(" ? ")); //, oe.aConstraints);
458
+ if (Globals.ADVANCED)
459
+ {
460
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
461
+ snapobjectButton.addActionListener(this);
462
+ snapobjectButton.setToolTipText("Snap Object");
463
+ }
464
+
465
+ oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
537466 flashSelectionButton.setToolTipText("Show selection");
538467 flashSelectionButton.addActionListener(this);
539468
540
- oe.toolbarPanel.add(new cButton(" ", false));
469
+ oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
541470
542
- oe.aConstraints.gridx += 1;
543
- oe.aConstraints.weighty = 0;
544
- oe.aConstraints.gridwidth = 1;
545
-
546
- //
547
- oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints);
471
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
548472 twoButton.setToolTipText("Show center view only");
549473 twoButton.addActionListener(this);
550
- oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints);
474
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
551475 fourButton.addActionListener(this);
552476 fourButton.setToolTipText("Show left panel only");
553
- oe.toolbarPanel.add(sixButton = new cButton("+|+| ")); //, oe.aConstraints);
477
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
554478 sixButton.setToolTipText("2-column layout left");
555479 sixButton.addActionListener(this);
556
- oe.toolbarPanel.add(threeButton = new cButton(" |+|+")); //, oe.aConstraints);
480
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
557481 threeButton.setToolTipText("2-column layout right");
558482 threeButton.addActionListener(this);
559
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+")); //, oe.aConstraints);
483
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
560484 sevenButton.setToolTipText("3-column layout");
561485 sevenButton.addActionListener(this);
562486 //
563487
564
- oe.toolbarPanel.add(rootButton = new cButton(" o o o ")); //, oe.aConstraints);
565
- rootButton.setToolTipText("Edit object in new tab");
488
+ oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
489
+ rootButton.setToolTipText("Edit selection in new tab");
566490 rootButton.addActionListener(this);
567
- oe.aConstraints.gridx += 1;
568
- oe.toolbarPanel.add(closeButton = new cButton(" X ")); //, oe.aConstraints);
491
+
492
+ oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
569493 closeButton.setToolTipText("Close tab");
570494 closeButton.addActionListener(this);
571495 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
572496 //clearButton.addActionListener(this);
573
- oe.aConstraints.gridx += 1;
574497
575
- oe.aConstraints.gridx = 1; //
576
- oe.treePanel.add(editButton = new cButton("+"), oe.aConstraints);
498
+ cGridBag commandsPanel = new cGridBag();
499
+
500
+ commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
501
+ editButton.setToolTipText("Edit selection");
577502 editButton.addActionListener(this);
578
- oe.aConstraints.gridx += 1;
579
- oe.aConstraints.weighty = 0;
580
- oe.aConstraints.gridwidth = 1;
581503
582
- oe.treePanel.add(uneditButton = new cButton("-"), oe.aConstraints);
504
+ commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
505
+ uneditButton.setToolTipText("Unedit selection");
583506 uneditButton.addActionListener(this);
584507
585
- oe.aConstraints.gridx += 1;
586
- oe.aConstraints.weighty = 0;
587
- oe.aConstraints.gridwidth = 1;
588
-
589
- oe.treePanel.add(clearPanelButton = new cButton("C"), oe.aConstraints);
508
+ commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
509
+ clearPanelButton.setToolTipText("Clear edit panel");
590510 clearPanelButton.addActionListener(this);
591511
592
- oe.aConstraints.gridx += 1;
593
- oe.aConstraints.weighty = 0;
594
- oe.aConstraints.gridwidth = 1;
595
-
596
- oe.treePanel.add(allParamsButton = new cButton("A"), oe.aConstraints);
512
+ commandsPanel.add(allParamsButton = new cButton("A", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
513
+ allParamsButton.setToolTipText("All params??");
597514 allParamsButton.addActionListener(this);
598515
599
- oe.aConstraints.gridx += 1;
600
- oe.aConstraints.weighty = 0;
601
- oe.aConstraints.gridwidth = 1;
602
-
603
- oe.treePanel.add(unselectButton = new cButton("U"), oe.aConstraints);
516
+ commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
517
+ unselectButton.setToolTipText("Unselect");
604518 unselectButton.addActionListener(this);
605519
520
+ commandsPanel.preferredHeight = 1;
521
+
522
+ oe.treePanel.add(commandsPanel);
523
+ oe.treePanel.Return();
524
+
606525 // oe.aConstraints.gridx += 1;
607526 // oe.aConstraints.weighty = 0;
608527 // oe.aConstraints.gridwidth = 1;
....@@ -614,40 +533,37 @@
614533 // oe.treePanel.add(gcButton = new cButton("GC"), oe.aConstraints);
615534 // gcButton.addActionListener(this);
616535
617
- oe.aConstraints.gridx = 0;
618
- oe.aConstraints.gridy += 1;
619
-
620
- //ctrlPanel.add(objList = new List(5, true));
621
- oe.aConstraints.gridwidth = 100;
622
- // oe.aConstraints.gridheight = 100;
623
- oe.aConstraints.fill = GridBagConstraints.BOTH; // HORIZONTAL;
624
- oe.aConstraints.gridheight = 1;
625
- oe.aConstraints.weighty = 0.5;
626
- oe.aConstraints.gridx = 0;
627
- JScrollPane jSP;
536
+ cGridBag jSPPanel = new cGridBag();
537
+
538
+ JScrollPane jSP;
628539 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
629
- oe.treePanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null)), oe.aConstraints);
540
+ jSPPanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null))); //, oe.aConstraints);
630541 ResetModel();
631
- oe.aConstraints.weighty = 0.5;
632
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
633
- oe.aConstraints.gridy += 1;
634
- oe.aConstraints.gridwidth = 1;
542
+
543
+ oe.treePanel.add(jSPPanel);
544
+ oe.treePanel.Return();
635545
636
- oe.aConstraints.weighty = 0;
637
- oe.aConstraints.gridwidth = 2;
638
-
639
- oe.treePanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0), oe.aConstraints);
546
+ cGridBag copyOptionsPanel = new cGridBag();
547
+
548
+ copyOptionsPanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints);
549
+ colorCB.setToolTipText("Copy color when dropped");
640550 colorCB.addItemListener(this);
641
- oe.aConstraints.gridx += 2;
642
- oe.treePanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0), oe.aConstraints);
551
+
552
+ copyOptionsPanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints);
553
+ materialCB.setToolTipText("Copy material when dropped");
643554 materialCB.addItemListener(this);
644
- oe.aConstraints.gridx += 2;
645
- oe.treePanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0), oe.aConstraints);
555
+
556
+ copyOptionsPanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints);
557
+ textureCB.setToolTipText("Copy texture when dropped");
646558 textureCB.addItemListener(this);
647559
648
- oe.aConstraints.gridx = 0;
649
- oe.aConstraints.gridy += 1;
560
+ copyOptionsPanel.preferredHeight = 1;
561
+ oe.treePanel.add(copyOptionsPanel);
562
+ oe.treePanel.Return();
650563
564
+// mainPanel.setDividerLocation(0.5); //1.0);
565
+// mainPanel.setResizeWeight(0.5);
566
+
651567 //jList.addListSelectionListener(this);
652568 oe.jTree.addTreeSelectionListener(this);
653569 //jTree.setRootVisible(false);
....@@ -669,6 +585,74 @@
669585 radio.layout = sevenButton;
670586 oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
671587 }
588
+
589
+ void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
590
+ {
591
+ panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
592
+ supportCB.setToolTipText("Enabled rigging");
593
+ supportCB.addItemListener(this);
594
+
595
+ // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
596
+ // localCB.addItemListener(this);
597
+
598
+ panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints);
599
+ crowdCB.setToolTipText("Used for crowds");
600
+ crowdCB.addItemListener(this);
601
+
602
+ panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints);
603
+ smoothCB.setToolTipText("Snapping delay");
604
+ smoothCB.addItemListener(this);
605
+
606
+ panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints);
607
+ slowCB.setToolTipText("Smooth interpolation");
608
+ slowCB.addItemListener(this);
609
+
610
+ panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
611
+ boxCB.setToolTipText("Display bounding boxes");
612
+ boxCB.addItemListener(this);
613
+
614
+ panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
615
+ zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
616
+ zoomBoxCB.addItemListener(this);
617
+
618
+// constraints.gridy += 1;
619
+// panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
620
+// speakerMocapCB.addItemListener(this);
621
+
622
+ if (false)
623
+ {
624
+ // handled in scripts
625
+ //constraints.gridy += 1;
626
+ panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints);
627
+ speakerCameraCB.addItemListener(this);
628
+
629
+ //constraints.gridy += 1;
630
+ panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints);
631
+ speakerFocusCB.addItemListener(this);
632
+
633
+ //constraints.gridy += 1;
634
+ panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints);
635
+ smoothfocusCB.addItemListener(this);
636
+ }
637
+
638
+//constraints.gridx += 1;
639
+//panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints);
640
+// debugCB.addItemListener(this);
641
+
642
+ panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints);
643
+ oeilCB.addItemListener(this);
644
+
645
+ panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
646
+ lookAtCB.setToolTipText("Look-at target");
647
+ lookAtCB.addItemListener(this);
648
+
649
+ cGridBag fill = new cGridBag();
650
+
651
+ fill.preferredHeight = 200;
652
+
653
+ panel.add(fill);
654
+
655
+ }
672656
673657 void EditObject(Object3D obj)
674658 {
....@@ -1115,7 +1099,7 @@
11151099 {
11161100 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
11171101 animationItem.addItemListener(this);
1118
- animationItem.setState(CameraPane.ANIMATION);
1102
+ animationItem.setState(Globals.ANIMATION);
11191103
11201104 menu.add("-");
11211105 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
....@@ -1510,6 +1494,7 @@
15101494 //
15111495 public void actionPerformed(ActionEvent event) // , Object arg)
15121496 {
1497
+ Object source = event.getSource();
15131498 /*
15141499 if (event.getSource() == nameField)
15151500 {
....@@ -1521,11 +1506,11 @@
15211506 }
15221507 else
15231508 */
1524
- if (event.getSource() == lookAtItem || event.getSource() == lookFromItem)
1509
+ if (source == lookAtItem || source == lookFromItem)
15251510 {
15261511 ScreenFit();
15271512 } else
1528
- if (event.getSource() == switchItem)
1513
+ if (source == switchItem)
15291514 {
15301515 cVector v1 = new cVector();
15311516 cVector v2 = new cVector();
....@@ -1534,11 +1519,11 @@
15341519 objEditor.cameraView.renderCamera.setAim(v2, v1);
15351520 objEditor.cameraView.repaint();
15361521 } else
1537
- if (event.getSource() == rectoidItem)
1522
+ if (source == rectoidItem)
15381523 {
15391524 makeSomething(new Box());
15401525 } else
1541
- if (event.getSource() == particleItem)
1526
+ if (source == particleItem)
15421527 {
15431528 ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType);
15441529 ParticleController particleController = new ParticleController(particleGeom);
....@@ -1559,9 +1544,9 @@
15591544 applyExample(particleGeom, "SMOKE");
15601545 makeSomething(particleGeom);
15611546 } else
1562
- if (event.getSource() == ragdollItem || event.getSource() == ragdoll2Item)
1547
+ if (source == ragdollItem || source == ragdoll2Item)
15631548 {
1564
- GenericJoint ragdoll = new GenericJoint(event.getSource() == ragdollItem);
1549
+ GenericJoint ragdoll = new GenericJoint(source == ragdollItem);
15651550
15661551 ragdoll.toParent = LA.newMatrix();
15671552 ragdoll.fromParent = LA.newMatrix();
....@@ -1579,7 +1564,7 @@
15791564 } else
15801565 /*
15811566 */
1582
- if (event.getSource() == heightFieldItem)
1567
+ if (source == heightFieldItem)
15831568 {
15841569 Object3D obj = new Object3D();
15851570
....@@ -1617,31 +1602,31 @@
16171602
16181603 makeSomething(obj);
16191604 } else
1620
- if (event.getSource() == gridItem)
1605
+ if (source == gridItem)
16211606 {
16221607 makeSomething(new Grid());
16231608 } else
1624
- if (event.getSource() == ellipsoidItem)
1609
+ if (source == ellipsoidItem)
16251610 {
16261611 makeSomething(new Sphere());
16271612 } else
1628
- if (event.getSource() == coneItem)
1613
+ if (source == coneItem)
16291614 {
16301615 makeSomething(new Cone());
16311616 } else
1632
- if (event.getSource() == torusItem)
1617
+ if (source == torusItem)
16331618 {
16341619 makeSomething(new Torus());
16351620 } else
1636
- if (event.getSource() == superItem)
1621
+ if (source == superItem)
16371622 {
16381623 makeSomething(new Superellipsoid());
16391624 } else
1640
- if (event.getSource() == kleinItem)
1625
+ if (source == kleinItem)
16411626 {
16421627 makeSomething(new Klein());
16431628 } else
1644
- if (event.getSource() == blobItem)
1629
+ if (source == blobItem)
16451630 {
16461631 Blob blob = new Blob();
16471632 BlobComponent comp = new BlobComponent();
....@@ -1649,15 +1634,15 @@
16491634 //blob.retile();
16501635 makeSomething(blob);
16511636 } else
1652
- if (event.getSource() == latheItem)
1637
+ if (source == latheItem)
16531638 {
16541639 makeSomething(new Lathe());
16551640 } else
1656
- if (event.getSource() == bezierItem)
1641
+ if (source == bezierItem)
16571642 {
16581643 makeSomething(new BezierSurface());
16591644 } else
1660
- if (event.getSource() == checkerItem)
1645
+ if (source == checkerItem)
16611646 {
16621647 /*
16631648 Object3D obj = new BezierSurface(5,8);
....@@ -1672,7 +1657,7 @@
16721657 */
16731658 makeSomething(new Checker());
16741659 } else
1675
- if (event.getSource() == meshItem)
1660
+ if (source == meshItem)
16761661 {
16771662 Object3D itemtomake = new Object3D();
16781663 Object3D child;
....@@ -1693,35 +1678,35 @@
16931678 makeSomething(child);
16941679 }
16951680 } else
1696
- if (event.getSource() == springItem)
1681
+ if (source == springItem)
16971682 {
16981683 cSpring s = new cSpring();
16991684 s.setup();
17001685 makeSomething(s);
17011686 } else
1702
- if (event.getSource() == flagItem)
1687
+ if (source == flagItem)
17031688 {
17041689 cSpring s = new cFlag();
17051690 s.setup();
17061691 makeSomething(s);
17071692 } else
1708
- if (event.getSource() == lightItem)
1693
+ if (source == lightItem)
17091694 {
17101695 makeSomething(new Light());
17111696 } else
1712
- if (event.getSource() == csgItem)
1697
+ if (source == csgItem)
17131698 {
17141699 group(new CSG());
17151700 } else
1716
- if (event.getSource() == templateItem)
1701
+ if (source == templateItem)
17171702 {
17181703 group(new cTemplate());
17191704 } else
1720
- if (event.getSource() == attributeItem)
1705
+ if (source == attributeItem)
17211706 {
17221707 makeSomething(new Attribute());
17231708 } else
1724
- if (event.getSource() == pointflowItem)
1709
+ if (source == pointflowItem)
17251710 {
17261711 makeSomething(new PointFlow());
17271712 } else
....@@ -1733,7 +1718,7 @@
17331718 } else
17341719 */
17351720
1736
- if (event.getSource() == superLoopItem)
1721
+ if (source == superLoopItem)
17371722 {
17381723 Composite g = new cGroup();
17391724 for (int i=0; i<15; i++)
....@@ -1755,7 +1740,7 @@
17551740
17561741 group(g);
17571742 } else
1758
- if (event.getSource() == loopItem)
1743
+ if (source == loopItem)
17591744 {
17601745 Composite csg = new GroupLeaf();
17611746 csg.count = 5;
....@@ -1764,7 +1749,7 @@
17641749 csg.addChild(child);
17651750 child.addChild(csg);
17661751 } else
1767
- if (event.getSource() == doubleItem)
1752
+ if (source == doubleItem)
17681753 {
17691754 Composite csg = new GroupLeaf();
17701755 csg.count = 5;
....@@ -1776,7 +1761,7 @@
17761761 csg.addChild(child);
17771762 child.addChild(csg);
17781763 } else
1779
- if (event.getSource() == tripleItem)
1764
+ if (source == tripleItem)
17801765 {
17811766 Composite csg = new GroupLeaf();
17821767 csg.count = 4;
....@@ -1792,70 +1777,70 @@
17921777 child.addChild(csg);
17931778 } else
17941779
1795
- if (event.getSource() == importGFDItem)
1780
+ if (source == importGFDItem)
17961781 {
17971782 ImportGFD();
17981783 } else
1799
- if (event.getSource() == importVRMLX3DItem)
1784
+ if (source == importVRMLX3DItem)
18001785 {
18011786 ImportVRMLX3D();
18021787 } else
1803
- if (event.getSource() == import3DSItem)
1788
+ if (source == import3DSItem)
18041789 {
18051790 objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
18061791 } else
1807
- if (event.getSource() == importOBJItem)
1792
+ if (source == importOBJItem)
18081793 {
18091794 objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
18101795 } else
1811
- if (event.getSource() == computeAOItem)
1796
+ if (source == computeAOItem)
18121797 {
18131798 Globals.drawMode = CameraPane.OCCLUSION;
18141799 Globals.theRenderer.repaint();
18151800 } else
1816
- if (event.getSource() == recompileItem)
1801
+ if (source == recompileItem)
18171802 {
18181803 Recompile();
18191804 refreshContents();
18201805 } else
1821
- if (event.getSource() == editScriptItem)
1806
+ if (source == editScriptItem)
18221807 {
18231808 OpenDialog();
18241809 refreshContents();
18251810 } else
1826
- if (event.getSource() == invariantsItem)
1811
+ if (source == invariantsItem)
18271812 {
18281813 System.out.println("Invariants:");
18291814 GrafreeD.grafreeD.universe.invariants();
18301815 } else
1831
- if (event.getSource() == memoryItem)
1816
+ if (source == memoryItem)
18321817 {
18331818 //System.out.println("Invariants:");
18341819 PrintMemory();
18351820 } else
1836
- if (event.getSource() == pathItem)
1821
+ if (source == pathItem)
18371822 {
18381823 PrintPath();
18391824 } else
1840
- if (event.getSource() == analyzeItem)
1825
+ if (source == analyzeItem)
18411826 {
18421827 AnalyzeObject();
18431828 } else
1844
- if (event.getSource() == dumpItem)
1829
+ if (source == dumpItem)
18451830 {
18461831 DumpObject();
18471832 } else
1848
- if (event.getSource() == screenfitButton)
1833
+ if (source == screenfitButton)
18491834 {
18501835 //Reload(lastConverter, lastFilename, true);
18511836 ScreenFit();
18521837 } else
1853
- if (event.getSource() == screenfitpointButton)
1838
+ if (source == screenfitpointButton)
18541839 {
18551840 //Reload(lastConverter, lastFilename, true);
18561841 ScreenFitPoint();
18571842 } else
1858
- if (event.getSource() == snapobjectButton)
1843
+ if (source == snapobjectButton)
18591844 {
18601845 //Reload(lastConverter, lastFilename, true);
18611846 SnapObject();
....@@ -1866,13 +1851,13 @@
18661851 // Recompile();
18671852 // refreshContents();
18681853 // } else
1869
- if (event.getSource() == gcButton)
1854
+ if (source == gcButton)
18701855 {
18711856 System.out.println("Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18721857 System.gc();
18731858 System.out.println("GC Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18741859 } else
1875
- if (event.getSource() == editLeafItem)
1860
+ if (source == editLeafItem)
18761861 {
18771862 Object3D obj;
18781863 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -1886,62 +1871,62 @@
18861871 }
18871872 refreshContents(true);
18881873 } else
1889
- if (event.getSource() == openWindowItem)
1874
+ if (source == openWindowItem)
18901875 {
18911876 EditSelection(true);
18921877 } else
1893
- if (event.getSource() == cutItem || event.getSource() == clearButton)
1878
+ if (source == cutItem || source == clearButton)
18941879 {
18951880 loadClipboard(true);
18961881 } else
1897
- if (event.getSource() == duplicateItem)
1882
+ if (source == duplicateItem)
18981883 {
18991884 Object3D keep = GrafreeD.clipboard;
19001885 loadClipboard(false);
19011886 paste(false);
19021887 GrafreeD.clipboard = keep;
19031888 } else
1904
- if (event.getSource() == cloneItem)
1889
+ if (source == cloneItem)
19051890 {
19061891 CloneSelection(false);
19071892 } else
1908
- if (event.getSource() == cloneSupportItem)
1893
+ if (source == cloneSupportItem)
19091894 {
19101895 CloneSelection(true);
19111896 } else
1912
- if (event.getSource() == copyItem)
1897
+ if (source == copyItem)
19131898 {
19141899 loadClipboard(false);
19151900 } else
1916
- if (event.getSource() == pasteItem)
1901
+ if (source == pasteItem)
19171902 {
19181903 paste(false);
19191904 } else
1920
- if (event.getSource() == pasteLinkItem)
1905
+ if (source == pasteLinkItem)
19211906 {
19221907 pasteInto(false);
19231908 } else
1924
- if (event.getSource() == pasteCloneItem)
1909
+ if (source == pasteCloneItem)
19251910 {
19261911 pasteInto(true);
19271912 } else
1928
- if (event.getSource() == pasteExpandItem)
1913
+ if (source == pasteExpandItem)
19291914 {
19301915 paste(true);
19311916 } else
1932
- if (event.getSource() == synchronizeItem)
1917
+ if (source == synchronizeItem)
19331918 {
19341919 Overwrite(Object3D.TRANSFORM);
19351920 } else
1936
- if (event.getSource() == overwriteNameItem)
1921
+ if (source == overwriteNameItem)
19371922 {
19381923 Overwrite(Object3D.NAME);
19391924 } else
1940
- if (event.getSource() == overwriteUVItem)
1925
+ if (source == overwriteUVItem)
19411926 {
19421927 Overwrite(Object3D.UV);
19431928 } else
1944
- if (event.getSource() == overwriteMatItem)
1929
+ if (source == overwriteMatItem)
19451930 {
19461931 /* july 2015
19471932 if ((dropAttributes & Object3D.TEXTURE) == 0)
....@@ -1961,7 +1946,7 @@
19611946
19621947 Overwrite(dropAttributes);
19631948 }
1964
- if (event.getSource() == overwriteGeoItem)
1949
+ if (source == overwriteGeoItem)
19651950 {
19661951 Overwrite(Object3D.GEOMETRY);
19671952 // if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
....@@ -1978,7 +1963,7 @@
19781963 // refreshContents();
19791964 // }
19801965 } else
1981
- if (event.getSource() == generateMeshItem)
1966
+ if (source == generateMeshItem)
19821967 {
19831968 //if (group.selection.size() == 1)
19841969 // for (int i=0; i<group.selection.size(); i++)
....@@ -1989,7 +1974,7 @@
19891974 ResetModel();
19901975 refreshContents();
19911976 } else
1992
- if (event.getSource() == extractGeometriesItem)
1977
+ if (source == extractGeometriesItem)
19931978 {
19941979 boolean one = false;
19951980
....@@ -2016,7 +2001,7 @@
20162001 ResetModel();
20172002 refreshContents();
20182003 } else
2019
- if (event.getSource() == cloneGeometriesItem)
2004
+ if (source == cloneGeometriesItem)
20202005 {
20212006 boolean one = false;
20222007
....@@ -2042,7 +2027,7 @@
20422027 ResetModel();
20432028 refreshContents();
20442029 } else
2045
- if (event.getSource() == shareGeometriesItem)
2030
+ if (source == shareGeometriesItem)
20462031 {
20472032 boolean one = false;
20482033
....@@ -2072,7 +2057,7 @@
20722057 refreshContents();
20732058 }
20742059 } else
2075
- if (event.getSource() == mergeGeometriesItem)
2060
+ if (source == mergeGeometriesItem)
20762061 {
20772062 boolean one = false;
20782063
....@@ -2102,7 +2087,7 @@
21022087 ResetModel();
21032088 refreshContents();
21042089 } else
2105
- if (event.getSource() == linkverticesItem)
2090
+ if (source == linkverticesItem)
21062091 {
21072092 // if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21082093 // {
....@@ -2135,7 +2120,7 @@
21352120 refreshContents();
21362121 }
21372122 } else
2138
- if (event.getSource() == resetsupportItem)
2123
+ if (source == resetsupportItem)
21392124 {
21402125 for (int i=0; i<group.selection.size(); i++)
21412126 {
....@@ -2147,7 +2132,7 @@
21472132
21482133 refreshContents();
21492134 } else
2150
- if (event.getSource() == relinkverticesItem)
2135
+ if (source == relinkverticesItem)
21512136 {
21522137 boolean random = CameraPane.RANDOM;
21532138 CameraPane.RANDOM = false; // parse all random nodes
....@@ -2156,7 +2141,7 @@
21562141
21572142 refreshContents();
21582143 } else
2159
- if (event.getSource() == resetreferencesItem)
2144
+ if (source == resetreferencesItem)
21602145 {
21612146 for (int i=0; i<group.selection.size(); i++)
21622147 {
....@@ -2165,7 +2150,7 @@
21652150
21662151 refreshContents();
21672152 } else
2168
- if (event.getSource() == setMasterItem)
2153
+ if (source == setMasterItem)
21692154 {
21702155 if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21712156 {
....@@ -2178,7 +2163,7 @@
21782163 refreshContents();
21792164 }
21802165 } else
2181
- if (event.getSource() == poseMeshItem)
2166
+ if (source == poseMeshItem)
21822167 {
21832168 if (group.selection.size() == 1)
21842169 {
....@@ -2197,19 +2182,19 @@
21972182 }
21982183
21992184 } else
2200
- if (event.getSource() == revertMeshItem)
2185
+ if (source == revertMeshItem)
22012186 {
22022187 RevertMeshes();
22032188 } else
2204
- if (event.getSource() == resetMeshItem)
2189
+ if (source == resetMeshItem)
22052190 {
22062191 ResetAll();
22072192 } else
2208
- if (event.getSource() == stepAllItem)
2193
+ if (source == stepAllItem)
22092194 {
22102195 StepAll();
22112196 } else
2212
- if (event.getSource() == clearItem) // || event.getSource() == clearButton)
2197
+ if (source == clearItem) // || event.getSource() == clearButton)
22132198 {
22142199 //int indices[] = jList.getSelectedIndices();
22152200 //for (int i = indices.length - 1; i >= 0; i--)
....@@ -2217,46 +2202,46 @@
22172202
22182203 ClearSelection(false);
22192204 } else
2220
- if (event.getSource() == clearAllItem)
2205
+ if (source == clearAllItem)
22212206 {
22222207 ClearSelection(true);
22232208 } else
2224
- if (event.getSource() == grabItem)
2209
+ if (source == grabItem)
22252210 {
22262211 group(new cGroup(), true);
22272212 } else
2228
- if (event.getSource() == hideItem)
2213
+ if (source == hideItem)
22292214 {
22302215 group(new HiddenObject());
22312216 } else
2232
- if (event.getSource() == frontItem)
2217
+ if (source == frontItem)
22332218 {
22342219 front();
22352220 } else
2236
- if (event.getSource() == backItem)
2221
+ if (source == backItem)
22372222 {
22382223 back();
22392224 } else
2240
- if (event.getSource() == cameraItem)
2225
+ if (source == cameraItem)
22412226 {
22422227 makeSomething(new Camera());
22432228 } else
2244
- if (event.getSource() == compositeItem)
2229
+ if (source == compositeItem)
22452230 {
22462231 group(new Composite());
22472232 } else
2248
- if (event.getSource() == randomItem)
2233
+ if (source == randomItem)
22492234 {
22502235 RandomNode random = new RandomNode();
22512236 group(random);
22522237 if (random.size() > 0)
2253
- random.name = random.get(0).name + "Rnd";
2238
+ random.name = random.get(0).name + "Switch";
22542239 } else
2255
- if (event.getSource() == physicsItem)
2240
+ if (source == physicsItem)
22562241 {
22572242 group(new PhysicsNode());
22582243 } else
2259
- if (event.getSource() == frameselectorItem)
2244
+ if (source == frameselectorItem)
22602245 {
22612246 for (int i=0; i<group.selection.size(); i++)
22622247 {
....@@ -2268,7 +2253,7 @@
22682253 ResetModel();
22692254 refreshContents();
22702255 } else
2271
- if (event.getSource() == switchGeoItem)
2256
+ if (source == switchGeoItem)
22722257 {
22732258 for (int i=0; i<group.selection.size(); i++)
22742259 {
....@@ -2280,7 +2265,7 @@
22802265 ResetModel();
22812266 refreshContents();
22822267 } else
2283
- if (event.getSource() == switchTransfoItem)
2268
+ if (source == switchTransfoItem)
22842269 {
22852270 for (int i=0; i<group.selection.size(); i++)
22862271 {
....@@ -2292,7 +2277,7 @@
22922277 ResetModel();
22932278 refreshContents();
22942279 } else
2295
- if (event.getSource() == morphItem)
2280
+ if (source == morphItem)
22962281 {
22972282 for (int i=0; i<group.selection.size(); i++)
22982283 {
....@@ -2304,7 +2289,7 @@
23042289 ResetModel();
23052290 refreshContents();
23062291 } else
2307
- if (event.getSource() == scriptNodeItem)
2292
+ if (source == scriptNodeItem)
23082293 {
23092294 boolean atleastone = false;
23102295
....@@ -2343,31 +2328,31 @@
23432328 }
23442329 }
23452330 } else
2346
- if (event.getSource() == linkerItem)
2331
+ if (source == linkerItem)
23472332 {
23482333 group(new cLinker());
23492334 } else
2350
- if (event.getSource() == textureItem)
2335
+ if (source == textureItem)
23512336 {
23522337 group(new TextureNode());
23532338 } else
2354
- if (event.getSource() == billboardItem)
2339
+ if (source == billboardItem)
23552340 {
23562341 group(new BillboardNode());
23572342 } else
2358
- if (event.getSource() == shadowXItem)
2343
+ if (source == shadowXItem)
23592344 {
23602345 CastShadow(0);
23612346 } else
2362
- if (event.getSource() == shadowYItem)
2347
+ if (source == shadowYItem)
23632348 {
23642349 CastShadow(1);
23652350 } else
2366
- if (event.getSource() == shadowZItem)
2351
+ if (source == shadowZItem)
23672352 {
23682353 CastShadow(2);
23692354 } else
2370
- if (event.getSource() == ungroupItem)
2355
+ if (source == ungroupItem)
23712356 {
23722357 //ungroup();
23732358 for (int i=0; i<group.selection.size(); i++)
....@@ -2379,179 +2364,179 @@
23792364
23802365 refreshContents();
23812366 } else
2382
- if (event.getSource() == genUVItem)
2367
+ if (source == genUVItem)
23832368 {
23842369 GenUV();
23852370 } else
2386
- if (event.getSource() == genNormalsCADItem)
2371
+ if (source == genNormalsCADItem)
23872372 {
23882373 GenNormals(true);
23892374 } else
2390
- if (event.getSource() == genNormalsMESHItem)
2375
+ if (source == genNormalsMESHItem)
23912376 {
23922377 GenNormals(true); // TODO
23932378 } else
2394
- if (event.getSource() == genNormalsORGANItem)
2379
+ if (source == genNormalsORGANItem)
23952380 {
23962381 GenNormals(false);
23972382 } else
2398
- if (event.getSource() == genNormalsMINEItem)
2383
+ if (source == genNormalsMINEItem)
23992384 {
24002385 GenNormalsMINE();
24012386 } else
2402
- if (event.getSource() == stripifyItem)
2387
+ if (source == stripifyItem)
24032388 {
24042389 Stripify();
24052390 } else
2406
- if (event.getSource() == unstripifyItem)
2391
+ if (source == unstripifyItem)
24072392 {
24082393 Unstripify();
24092394 } else
2410
- if (event.getSource() == trimItem)
2395
+ if (source == trimItem)
24112396 {
24122397 Trim();
24132398 } else
2414
- if (event.getSource() == untrimItem)
2399
+ if (source == untrimItem)
24152400 {
24162401 Untrim();
24172402 } else
2418
- if (event.getSource() == clearColorsItem)
2403
+ if (source == clearColorsItem)
24192404 {
24202405 ClearColors();
24212406 } else
2422
- if (event.getSource() == clearMaterialsItem)
2407
+ if (source == clearMaterialsItem)
24232408 {
24242409 ClearMaterials();
24252410 } else
2426
- if (event.getSource() == liveleavesItem)
2411
+ if (source == liveleavesItem)
24272412 {
24282413 LiveLeaves(true);
24292414 } else
2430
- if (event.getSource() == unliveleavesItem)
2415
+ if (source == unliveleavesItem)
24312416 {
24322417 LiveLeaves(false);
24332418 } else
2434
- if (event.getSource() == supportleavesItem)
2419
+ if (source == supportleavesItem)
24352420 {
24362421 SupportLeaves(true);
24372422 } else
2438
- if (event.getSource() == unsupportleavesItem)
2423
+ if (source == unsupportleavesItem)
24392424 {
24402425 SupportLeaves(false);
24412426 } else
2442
- if (event.getSource() == hideleavesItem)
2427
+ if (source == hideleavesItem)
24432428 {
24442429 HideLeaves(true);
24452430 } else
2446
- if (event.getSource() == showleavesItem)
2431
+ if (source == showleavesItem)
24472432 {
24482433 HideLeaves(false);
24492434 } else
2450
- if (event.getSource() == markleavesItem)
2435
+ if (source == markleavesItem)
24512436 {
24522437 MarkLeaves(true);
24532438 } else
2454
- if (event.getSource() == unmarkleavesItem)
2439
+ if (source == unmarkleavesItem)
24552440 {
24562441 MarkLeaves(false);
24572442 } else
2458
- if (event.getSource() == flipVItem)
2443
+ if (source == flipVItem)
24592444 {
24602445 FlipV(true);
24612446 } else
2462
- if (event.getSource() == unflipVItem)
2447
+ if (source == unflipVItem)
24632448 {
24642449 FlipV(false);
24652450 } else
2466
- if (event.getSource() == lowTexturesItem)
2451
+ if (source == lowTexturesItem)
24672452 {
24682453 SetTexRes(0);
24692454 } else
2470
- if (event.getSource() == normalTexturesItem)
2455
+ if (source == normalTexturesItem)
24712456 {
24722457 SetTexRes(1);
24732458 } else
2474
- if (event.getSource() == highTexturesItem)
2459
+ if (source == highTexturesItem)
24752460 {
24762461 SetTexRes(2);
24772462 } else
2478
- if (event.getSource() == veryhighTexturesItem)
2463
+ if (source == veryhighTexturesItem)
24792464 {
24802465 SetTexRes(3);
24812466 } else
2482
- if (event.getSource() == maxTexturesItem)
2467
+ if (source == maxTexturesItem)
24832468 {
24842469 SetTexRes(4);
24852470 } else
2486
- if (event.getSource() == panoTexturesItem)
2471
+ if (source == panoTexturesItem)
24872472 {
24882473 SetTexRes(5);
24892474 } else
2490
- if (event.getSource() == reverseNormalsItem)
2475
+ if (source == reverseNormalsItem)
24912476 {
24922477 ReverseNormals();
24932478 } else
2494
- if (event.getSource() == parseverticesItem)
2479
+ if (source == parseverticesItem)
24952480 {
24962481 ParseVertices();
24972482 } else
2498
- if (event.getSource() == textureFieldItem)
2483
+ if (source == textureFieldItem)
24992484 {
25002485 TextureVertices();
25012486 } else
2502
- if (event.getSource() == alignItem)
2487
+ if (source == alignItem)
25032488 {
25042489 Align();
25052490 } else
2506
- if (event.getSource() == mirrorItem)
2491
+ if (source == mirrorItem)
25072492 {
25082493 MirrorPoses();
25092494 } else
2510
- if (event.getSource() == reduceMorphItem)
2495
+ if (source == reduceMorphItem)
25112496 {
25122497 MeshReduction(false);
25132498 } else
2514
- if (event.getSource() == reduce34MorphItem)
2499
+ if (source == reduce34MorphItem)
25152500 {
25162501 MeshReduction(true);
25172502 } else
2518
- if (event.getSource() == reverseTrianglesItem)
2503
+ if (source == reverseTrianglesItem)
25192504 {
25202505 ReverseTriangles();
25212506 } else
2522
- if (event.getSource() == reduceMeshItem)
2507
+ if (source == reduceMeshItem)
25232508 {
25242509 ReduceMesh(false);
25252510 } else
2526
- if (event.getSource() == reduce34MeshItem)
2511
+ if (source == reduce34MeshItem)
25272512 {
25282513 ReduceMesh(true);
25292514 } else
2530
- if (event.getSource() == increaseMeshItem)
2515
+ if (source == increaseMeshItem)
25312516 {
25322517 IncreaseMesh();
25332518 } else
2534
- if (event.getSource() == clipMeshItem)
2519
+ if (source == clipMeshItem)
25352520 {
25362521 ClipMesh();
25372522 } else
2538
- if (event.getSource() == smoothMeshItem)
2523
+ if (source == smoothMeshItem)
25392524 {
25402525 SmoothMesh();
25412526 } else
2542
- if (event.getSource() == transformgeometryItem)
2527
+ if (source == transformgeometryItem)
25432528 {
25442529 TransformGeometry();
25452530 } else
2546
- if (event.getSource() == resetTransformItem)
2531
+ if (source == resetTransformItem)
25472532 {
25482533 ResetTransform();
25492534 } else
2550
- if (event.getSource() == resetCentroidItem)
2535
+ if (source == resetCentroidItem)
25512536 {
25522537 ResetCentroid();
25532538 } else
2554
- if (event.getSource() == resetParentItem)
2539
+ if (source == resetParentItem)
25552540 {
25562541 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25572542 {
....@@ -2561,7 +2546,7 @@
25612546
25622547 refreshContents();
25632548 } else
2564
- if (event.getSource() == repairParentItem)
2549
+ if (source == repairParentItem)
25652550 {
25662551 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25672552 {
....@@ -2575,7 +2560,7 @@
25752560
25762561 refreshContents();
25772562 } else
2578
- if (event.getSource() == repairShadowItem)
2563
+ if (source == repairShadowItem)
25792564 {
25802565 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25812566 {
....@@ -2589,7 +2574,7 @@
25892574
25902575 refreshContents();
25912576 } else
2592
- if (event.getSource() == sortbysizeItem)
2577
+ if (source == sortbysizeItem)
25932578 {
25942579 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25952580 {
....@@ -2601,7 +2586,7 @@
26012586 ResetModel();
26022587 refreshContents();
26032588 } else
2604
- if (event.getSource() == sortbynameItem)
2589
+ if (source == sortbynameItem)
26052590 {
26062591 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
26072592 {
....@@ -2613,7 +2598,7 @@
26132598 ResetModel();
26142599 refreshContents();
26152600 } else
2616
- if (event.getSource() == attachPigmentItem)
2601
+ if (source == attachPigmentItem)
26172602 {
26182603 String texture = GetFile("Attach pigment");
26192604 Object3D obj;
....@@ -2625,7 +2610,7 @@
26252610
26262611 refreshContents();
26272612 } else
2628
- if (event.getSource() == detachPigmentItem)
2613
+ if (source == detachPigmentItem)
26292614 {
26302615 Object3D obj;
26312616 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2636,7 +2621,7 @@
26362621
26372622 refreshContents();
26382623 } else
2639
- if (event.getSource() == attachBumpItem)
2624
+ if (source == attachBumpItem)
26402625 {
26412626 String texture = GetFile("Attach bump");
26422627 Object3D obj;
....@@ -2648,7 +2633,7 @@
26482633
26492634 refreshContents();
26502635 } else
2651
- if (event.getSource() == detachBumpItem)
2636
+ if (source == detachBumpItem)
26522637 {
26532638 Object3D obj;
26542639 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2659,7 +2644,7 @@
26592644
26602645 refreshContents();
26612646 } else
2662
- if (event.getSource() == pigmentBumpItem)
2647
+ if (source == pigmentBumpItem)
26632648 {
26642649 Object3D obj;
26652650 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2670,158 +2655,195 @@
26702655
26712656 refreshContents();
26722657 } else
2673
- if (event.getSource() == flashSelectionButton)
2658
+ if (source == flashSelectionButton)
26742659 {
26752660 CameraPane.flash = true;
26762661 refreshContents();
26772662 } else
2678
- if (event.getSource() == oneButton)
2663
+ if (source == oneButton)
26792664 {
26802665 } else
2681
- if (event.getSource() == twoButton)
2666
+ if (source == twoButton)
26822667 {
26832668 radio.layout = twoButton;
26842669 // bug
26852670 //gridPanel.setDividerLocation(1.0);
26862671 //bigPanel.setDividerLocation(0.0);
2687
- bigThree.remove(scenePanel);
2688
- bigThree.remove(centralPanel);
2689
- bigThree.remove(XYZPanel);
2690
- aWindowConstraints.gridx = 0;
2691
- aWindowConstraints.gridy = 0;
2692
- aWindowConstraints.gridwidth = 1;
2693
- // aConstraints.gridheight = 3;
2694
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2695
- aWindowConstraints.weightx = 0;
2696
- aWindowConstraints.weighty = 1;
2697
- //bigThree.add(jtp, aWindowConstraints);
2698
- aWindowConstraints.weightx = 1;
2699
- aWindowConstraints.gridwidth = 3;
2700
- // aConstraints.gridheight = 3;
2701
- aWindowConstraints.gridx = 1;
2702
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2703
- bigThree.add(centralPanel, aWindowConstraints);
2704
- aWindowConstraints.weightx = 0;
2705
- aWindowConstraints.gridx = 4;
2706
- aWindowConstraints.gridwidth = 1;
2707
- // aConstraints.gridheight = 3;
2708
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2709
- //bigThree.add(XYZPanel, aWindowConstraints);
2710
- bigThree.revalidate();
2672
+// bigThree.remove(scenePanel);
2673
+// bigThree.remove(centralPanel);
2674
+// bigThree.remove(XYZPanel);
2675
+// aWindowConstraints.gridx = 0;
2676
+// aWindowConstraints.gridy = 0;
2677
+// aWindowConstraints.gridwidth = 1;
2678
+// // aConstraints.gridheight = 3;
2679
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2680
+// aWindowConstraints.weightx = 0;
2681
+// aWindowConstraints.weighty = 1;
2682
+// //bigThree.add(jtp, aWindowConstraints);
2683
+// aWindowConstraints.weightx = 1;
2684
+// aWindowConstraints.gridwidth = 3;
2685
+// // aConstraints.gridheight = 3;
2686
+// aWindowConstraints.gridx = 1;
2687
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2688
+// bigThree.add(centralPanel, aWindowConstraints);
2689
+// aWindowConstraints.weightx = 0;
2690
+// aWindowConstraints.gridx = 4;
2691
+// aWindowConstraints.gridwidth = 1;
2692
+// // aConstraints.gridheight = 3;
2693
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2694
+// //bigThree.add(XYZPanel, aWindowConstraints);
2695
+// scenePanel.setVisible(false);
2696
+// centralPanel.setVisible(true);
2697
+// XYZPanel.setVisible(false);
2698
+ bigThree.ClearUI();
2699
+ bigThree.add(centralPanel);
2700
+ bigThree.FlushUI();
27112701 } else
2712
- if (event.getSource() == threeButton)
2702
+ if (source == threeButton)
27132703 {
27142704 radio.layout = threeButton;
2715
- bigThree.remove(scenePanel);
2716
- bigThree.remove(centralPanel);
2717
- bigThree.remove(XYZPanel);
2718
- aWindowConstraints.gridx = 0;
2719
- aWindowConstraints.gridy = 0;
2720
- aWindowConstraints.gridwidth = 1;
2721
- // aConstraints.gridheight = 3;
2722
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2723
- aWindowConstraints.weightx = 0;
2724
- aWindowConstraints.weighty = 1;
2725
- //bigThree.add(jtp, aWindowConstraints);
2726
- aWindowConstraints.weightx = 1;
2727
- aWindowConstraints.gridwidth = 3;
2728
- // aConstraints.gridheight = 3;
2729
- aWindowConstraints.gridx = 1;
2730
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2731
- bigThree.add(centralPanel, aWindowConstraints);
2732
- aWindowConstraints.weightx = 0;
2733
- aWindowConstraints.gridx = 4;
2734
- aWindowConstraints.gridwidth = 1;
2735
- // aConstraints.gridheight = 3;
2736
- aConstraints.fill = GridBagConstraints.VERTICAL;
2737
- bigThree.add(XYZPanel, aWindowConstraints);
2738
- bigThree.revalidate();
2705
+
2706
+// bigThree.remove(scenePanel);
2707
+// bigThree.remove(centralPanel);
2708
+// bigThree.remove(XYZPanel);
2709
+// aWindowConstraints.gridx = 0;
2710
+// aWindowConstraints.gridy = 0;
2711
+// aWindowConstraints.gridwidth = 1;
2712
+// // aConstraints.gridheight = 3;
2713
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2714
+// aWindowConstraints.weightx = 0;
2715
+// aWindowConstraints.weighty = 1;
2716
+// //bigThree.add(jtp, aWindowConstraints);
2717
+// aWindowConstraints.weightx = 1;
2718
+// aWindowConstraints.gridwidth = 3;
2719
+// // aConstraints.gridheight = 3;
2720
+// aWindowConstraints.gridx = 1;
2721
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2722
+// bigThree.add(centralPanel, aWindowConstraints);
2723
+// aWindowConstraints.weightx = 0;
2724
+// aWindowConstraints.gridx = 4;
2725
+// aWindowConstraints.gridwidth = 1;
2726
+// // aConstraints.gridheight = 3;
2727
+// aConstraints.fill = GridBagConstraints.VERTICAL;
2728
+// bigThree.add(XYZPanel, aWindowConstraints);
2729
+// bigThree.validate();
2730
+// scenePanel.setVisible(false);
2731
+// centralPanel.setVisible(true);
2732
+// XYZPanel.setVisible(true);
2733
+ bigThree.ClearUI();
2734
+ bigThree.add(centralPanel);
2735
+ bigThree.add(XYZPanel);
2736
+ bigThree.FlushUI();
27392737 } else
2740
- if (event.getSource() == fourButton)
2738
+ if (source == fourButton)
27412739 {
27422740 radio.layout = fourButton;
2743
- bigThree.remove(scenePanel);
2744
- bigThree.remove(centralPanel);
2745
- bigThree.remove(XYZPanel);
2746
- aWindowConstraints.gridx = 0;
2747
- aWindowConstraints.gridy = 0;
2748
- aWindowConstraints.gridwidth = 1;
2749
- // aWindowConstraints.gridheight = 3;
2750
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2751
- aWindowConstraints.weightx = 1;
2752
- aWindowConstraints.weighty = 1;
2753
- bigThree.add(scenePanel, aWindowConstraints);
2754
- aWindowConstraints.weightx = 1;
2755
- aWindowConstraints.gridwidth = 3;
2756
- // aConstraints.gridheight = 3;
2757
- aWindowConstraints.gridx = 1;
2758
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2759
- //bigThree.add(cameraPanel, aWindowConstraints);
2760
- aWindowConstraints.weightx = 0;
2761
- aWindowConstraints.gridx = 4;
2762
- aWindowConstraints.gridwidth = 1;
2763
- // aWindowConstraints.gridheight = 3;
2764
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2765
- //bigThree.add(XYZPanel, aWindowConstraints);
2766
- bigThree.revalidate();
2741
+
2742
+// bigThree.remove(scenePanel);
2743
+// bigThree.remove(centralPanel);
2744
+// bigThree.remove(XYZPanel);
2745
+// aWindowConstraints.gridx = 0;
2746
+// aWindowConstraints.gridy = 0;
2747
+// aWindowConstraints.gridwidth = 1;
2748
+// // aWindowConstraints.gridheight = 3;
2749
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2750
+// aWindowConstraints.weightx = 1;
2751
+// aWindowConstraints.weighty = 1;
2752
+// bigThree.add(scenePanel, aWindowConstraints);
2753
+// aWindowConstraints.weightx = 1;
2754
+// aWindowConstraints.gridwidth = 3;
2755
+// // aConstraints.gridheight = 3;
2756
+// aWindowConstraints.gridx = 1;
2757
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2758
+// //bigThree.add(cameraPanel, aWindowConstraints);
2759
+// aWindowConstraints.weightx = 0;
2760
+// aWindowConstraints.gridx = 4;
2761
+// aWindowConstraints.gridwidth = 1;
2762
+// // aWindowConstraints.gridheight = 3;
2763
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2764
+// //bigThree.add(XYZPanel, aWindowConstraints);
2765
+// bigThree.validate();
2766
+// scenePanel.setVisible(true);
2767
+// centralPanel.setVisible(false);
2768
+// XYZPanel.setVisible(false);
2769
+ bigThree.ClearUI();
2770
+ bigThree.add(scenePanel);
2771
+ bigThree.FlushUI();
27672772 } else
2768
- if (event.getSource() == sixButton)
2773
+ if (source == sixButton)
27692774 {
27702775 radio.layout = sixButton;
2771
- bigThree.remove(scenePanel);
2772
- bigThree.remove(centralPanel);
2773
- bigThree.remove(XYZPanel);
2774
- aWindowConstraints.gridx = 0;
2775
- aWindowConstraints.gridy = 0;
2776
- aWindowConstraints.gridwidth = 1;
2777
- // aConstraints.gridheight = 3;
2778
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2779
- aWindowConstraints.weightx = 0;
2780
- aWindowConstraints.weighty = 1;
2781
- bigThree.add(scenePanel, aWindowConstraints);
2782
- aWindowConstraints.weightx = 1;
2783
- aWindowConstraints.gridwidth = 3;
2784
- // aWindowConstraints.gridheight = 3;
2785
- aWindowConstraints.gridx = 1;
2786
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2787
- bigThree.add(centralPanel, aWindowConstraints);
2788
- aWindowConstraints.weightx = 0;
2789
- aWindowConstraints.gridx = 4;
2790
- aWindowConstraints.gridwidth = 1;
2791
- // aWindowConstraints.gridheight = 3;
2792
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2793
- //bigThree.add(XYZPanel, aConstraints);
2794
- bigThree.revalidate();
2776
+
2777
+// bigThree.remove(scenePanel);
2778
+// bigThree.remove(centralPanel);
2779
+// bigThree.remove(XYZPanel);
2780
+// aWindowConstraints.gridx = 0;
2781
+// aWindowConstraints.gridy = 0;
2782
+// aWindowConstraints.gridwidth = 1;
2783
+// // aConstraints.gridheight = 3;
2784
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2785
+// aWindowConstraints.weightx = 0;
2786
+// aWindowConstraints.weighty = 1;
2787
+// bigThree.add(scenePanel, aWindowConstraints);
2788
+// aWindowConstraints.weightx = 1;
2789
+// aWindowConstraints.gridwidth = 3;
2790
+// // aWindowConstraints.gridheight = 3;
2791
+// aWindowConstraints.gridx = 1;
2792
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2793
+// bigThree.add(centralPanel, aWindowConstraints);
2794
+// aWindowConstraints.weightx = 0;
2795
+// aWindowConstraints.gridx = 4;
2796
+// aWindowConstraints.gridwidth = 1;
2797
+// // aWindowConstraints.gridheight = 3;
2798
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2799
+// //bigThree.add(XYZPanel, aConstraints);
2800
+// bigThree.validate();
2801
+// scenePanel.setVisible(true);
2802
+// centralPanel.setVisible(true);
2803
+// XYZPanel.setVisible(false);
2804
+ bigThree.ClearUI();
2805
+ bigThree.add(scenePanel);
2806
+ bigThree.add(centralPanel);
2807
+ bigThree.FlushUI();
27952808 } else
2796
- if (event.getSource() == sevenButton)
2809
+ if (source == sevenButton)
27972810 {
27982811 radio.layout = sevenButton;
2799
- bigThree.remove(scenePanel);
2800
- bigThree.remove(centralPanel);
2801
- bigThree.remove(XYZPanel);
2802
- aWindowConstraints.gridx = 0;
2803
- aWindowConstraints.gridy = 0;
2804
- aWindowConstraints.gridwidth = 1;
2805
- // aWindowConstraints.gridheight = 3;
2806
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2807
- aWindowConstraints.weightx = 0;
2808
- aWindowConstraints.weighty = 1;
2809
- bigThree.add(scenePanel, aWindowConstraints);
2810
- aWindowConstraints.weightx = 1;
2811
- aWindowConstraints.gridwidth = 3;
2812
- // aWindowConstraints.gridheight = 3;
2813
- aWindowConstraints.gridx = 1;
2814
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2815
- bigThree.add(centralPanel, aWindowConstraints);
2816
- aWindowConstraints.weightx = 0;
2817
- aWindowConstraints.gridx = 4;
2818
- aWindowConstraints.gridwidth = 1;
2819
- // aConstraints.gridheight = 3;
2820
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2821
- bigThree.add(XYZPanel, aWindowConstraints);
2822
- bigThree.revalidate();
2812
+
2813
+// bigThree.remove(scenePanel);
2814
+// bigThree.remove(centralPanel);
2815
+// bigThree.remove(XYZPanel);
2816
+// aWindowConstraints.gridx = 0;
2817
+// aWindowConstraints.gridy = 0;
2818
+// aWindowConstraints.gridwidth = 1;
2819
+// // aWindowConstraints.gridheight = 3;
2820
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2821
+// aWindowConstraints.weightx = 0;
2822
+// aWindowConstraints.weighty = 1;
2823
+// bigThree.add(scenePanel, aWindowConstraints);
2824
+// aWindowConstraints.weightx = 1;
2825
+// aWindowConstraints.gridwidth = 3;
2826
+// // aWindowConstraints.gridheight = 3;
2827
+// aWindowConstraints.gridx = 1;
2828
+// aWindowConstraints.fill = GridBagConstraints.BOTH;
2829
+// bigThree.add(centralPanel, aWindowConstraints);
2830
+// aWindowConstraints.weightx = 0;
2831
+// aWindowConstraints.gridx = 4;
2832
+// aWindowConstraints.gridwidth = 1;
2833
+// // aConstraints.gridheight = 3;
2834
+// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2835
+// bigThree.add(XYZPanel, aWindowConstraints);
2836
+// bigThree.validate();
2837
+// scenePanel.setVisible(true);
2838
+// centralPanel.setVisible(true);
2839
+// XYZPanel.setVisible(true);
2840
+ bigThree.ClearUI();
2841
+ bigThree.add(scenePanel);
2842
+ bigThree.add(centralPanel);
2843
+ bigThree.add(XYZPanel);
2844
+ bigThree.FlushUI();
28232845 } else
2824
- if (event.getSource() == rootButton)
2846
+ if (source == rootButton)
28252847 {
28262848 Object3D obj;
28272849 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2833,7 +2855,7 @@
28332855
28342856 refreshContents(true);
28352857 } else
2836
- if (event.getSource() == closeButton)
2858
+ if (source == closeButton)
28372859 {
28382860 //System.out.println("CLOSE: " + buttonGroup.getSelection());
28392861 cRadio ab;
....@@ -2854,11 +2876,11 @@
28542876 }
28552877 refreshContents(true);
28562878 } else
2857
- if (event.getSource() == editItem || event.getSource() == editButton)
2879
+ if (source == editItem || source == editButton)
28582880 {
28592881 EditSelection(false);
28602882 } else
2861
- if (event.getSource() == uneditButton)
2883
+ if (source == uneditButton)
28622884 {
28632885 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
28642886 {
....@@ -2870,12 +2892,12 @@
28702892
28712893 child.editWindow = null; // ???????????
28722894 }
2873
- objEditor.ctrlPanel.revalidate();
2895
+ objEditor.ctrlPanel.validate();
28742896 //objEditor.jTree.clearSelection();
28752897 //objEditor.ResetSliders();
28762898 refreshContents(true);
28772899 } else
2878
- if (event.getSource() == clearPanelButton)
2900
+ if (source == clearPanelButton)
28792901 {
28802902 assert(copy == group);
28812903 //copy.ClearUI();
....@@ -2886,7 +2908,7 @@
28862908 listUI.clear();
28872909 refreshContents(true);
28882910 } else
2889
- if (event.getSource() == allParamsButton)
2911
+ if (source == allParamsButton)
28902912 {
28912913 assert(copy == group);
28922914
....@@ -2907,19 +2929,19 @@
29072929
29082930 refreshContents(true);
29092931 } else
2910
- if (event.getSource() == unselectButton)
2932
+ if (source == unselectButton)
29112933 {
29122934 objEditor.jTree.clearSelection();
29132935 // ?? oct 2012 GrafreeD.clipboard.clear();
29142936 objEditor.ResetSliders();
29152937 refreshContents(true);
29162938 } else
2917
- if(event.getSource() instanceof cRadio)
2939
+ if(source instanceof cRadio)
29182940 {
29192941 group.parent = keepparent;
29202942 group.attributes = 0;
29212943 //group.editWindow = null;
2922
- /*cRadio*/ radio = (cRadio)event.getSource();
2944
+ /*cRadio*/ radio = (cRadio)source;
29232945 Object3D obj = radio.GetObject();
29242946 System.out.println("Edit " + obj);
29252947 if (true) // obj instanceof Composite) // obj.parent == null) // obj instanceof Composite)
....@@ -4078,12 +4100,12 @@
40784100 System.err.println("info : " + child.GetPath());
40794101 }
40804102 }
4081
- else
4082
- {
4083
- objEditor.SetMaterial(group); // .GetMaterial());
4084
- objEditor.AddInfo(group, this, true); // .GetMaterial());
4085
- System.err.println("info : " + group.GetPath());
4086
- }
4103
+// else
4104
+// {
4105
+// objEditor.SetMaterial(group); // .GetMaterial());
4106
+// objEditor.AddInfo(group, this, true); // .GetMaterial());
4107
+// System.err.println("info : " + group.GetPath());
4108
+// }
40874109
40884110 objEditor.SetText(); // jan 2014
40894111