Normand Briere
2019-05-01 d1e1417edc8a6ccf195b6da3270f22234dda61e4
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,153 +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);
440
+ liveCB.setToolTipText("Enabled animation");
441441 liveCB.addItemListener(this);
442442
443
- oe.aConstraints.gridx += 1;
444
- oe.toolbarPanel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT), oe.aConstraints);
445
- supportCB.addItemListener(this);
446
-
447
- // oe.aConstraints.gridx += 1;
448
- // oe.toolbarPanel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), oe.aConstraints);
449
- // localCB.addItemListener(this);
450
-
451
- oe.aConstraints.gridx += 1;
452
- oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD), oe.aConstraints);
453
- crowdCB.addItemListener(this);
454
-
455
- oe.aConstraints.gridx += 1;
456
- oe.toolbarPanel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA), oe.aConstraints);
457
- smoothCB.addItemListener(this);
458
-
459
- oe.aConstraints.gridx += 1;
460
- oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), oe.aConstraints);
443
+ oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
444
+ fastCB.setToolTipText("Fast mode");
461445 fastCB.addItemListener(this);
462
- oe.aConstraints.gridx += 1;
463
- oe.toolbarPanel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE), oe.aConstraints);
464
- slowCB.addItemListener(this);
465
- oe.aConstraints.gridx += 1;
466
- oe.toolbarPanel.add(boxCB = new cCheckBox("Box", CameraPane.FAST), oe.aConstraints);
467
- boxCB.addItemListener(this);
468
-
469
-// oe.aConstraints.gridx += 1;
470
-// oe.toolbarPanel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), oe.aConstraints);
471
-// speakerMocapCB.addItemListener(this);
472
-
473
- if (false)
474
- {
475
- // handled in scripts
476
- oe.aConstraints.gridx += 1;
477
- oe.toolbarPanel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA), oe.aConstraints);
478
- speakerCameraCB.addItemListener(this);
479
-
480
- oe.aConstraints.gridx += 1;
481
- oe.toolbarPanel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS), oe.aConstraints);
482
- speakerFocusCB.addItemListener(this);
483
-
484
- oe.aConstraints.gridx += 1;
485
- oe.toolbarPanel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS), oe.aConstraints);
486
- smoothfocusCB.addItemListener(this);
487
- }
488
-
489
-//oe.aConstraints.gridx += 1;
490
-//oe.toolbarPanel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), oe.aConstraints);
491
-// debugCB.addItemListener(this);
492
-
493
- oe.aConstraints.gridx += 1;
494
- oe.toolbarPanel.add(oeilCB = new cCheckBox("O", CameraPane.OEIL), oe.aConstraints);
495
- oeilCB.addItemListener(this);
496
-
497
- oe.aConstraints.gridx += 1;
498
- oe.toolbarPanel.add(lookAtCB = new cCheckBox("T", CameraPane.LOOKAT), oe.aConstraints);
499
- lookAtCB.addItemListener(this);
500
-
501
- oe.aConstraints.gridx += 1;
502
- oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK), oe.aConstraints);
446
+
447
+ oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints);
448
+ trackCB.setToolTipText("Enable tracking");
503449 trackCB.addItemListener(this);
504450
505
- oe.aConstraints.gridx += 1;
506
- oe.toolbarPanel.add(screenfitButton = new cButton("@ ")); //, oe.aConstraints);
451
+ oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
452
+ screenfitButton.setToolTipText("Screen fit");
507453 screenfitButton.addActionListener(this);
508
- oe.aConstraints.gridx += 1;
454
+
509455 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
510456 // screenfitpointButton.addActionListener(this);
511
-// oe.aConstraints.gridx += 1;
512
- oe.toolbarPanel.add(snapobjectButton = new cButton(" O+ ")); //, oe.aConstraints);
513
- snapobjectButton.addActionListener(this);
514
- oe.aConstraints.gridx += 1;
515457
516
- //aConstraints.gridx = 0;
517
- //aConstraints.gridy += 1;
518
- oe.aConstraints.weighty = 0;
519
- oe.aConstraints.gridwidth = 1;
520
-
521
- 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);
466
+ flashSelectionButton.setToolTipText("Show selection");
522467 flashSelectionButton.addActionListener(this);
523468
524
- oe.toolbarPanel.add(new cButton(" ", false));
469
+ oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
525470
526
- oe.aConstraints.gridx += 1;
527
- oe.aConstraints.weighty = 0;
528
- oe.aConstraints.gridwidth = 1;
529
-
530
- //
531
- oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints);
471
+ oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
472
+ twoButton.setToolTipText("Show center view only");
532473 twoButton.addActionListener(this);
533
- oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints);
474
+ oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
534475 fourButton.addActionListener(this);
535
- oe.toolbarPanel.add(sixButton = new cButton("+|+| ")); //, oe.aConstraints);
476
+ fourButton.setToolTipText("Show left panel only");
477
+ oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
478
+ sixButton.setToolTipText("2-column layout left");
536479 sixButton.addActionListener(this);
537
- oe.toolbarPanel.add(threeButton = new cButton(" |+|+")); //, oe.aConstraints);
480
+ oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
481
+ threeButton.setToolTipText("2-column layout right");
538482 threeButton.addActionListener(this);
539
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+")); //, oe.aConstraints);
483
+ oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
484
+ sevenButton.setToolTipText("3-column layout");
540485 sevenButton.addActionListener(this);
541486 //
542487
543
- oe.toolbarPanel.add(rootButton = new cButton(" o o o E ")); //, oe.aConstraints);
488
+ oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
489
+ rootButton.setToolTipText("Edit selection in new tab");
544490 rootButton.addActionListener(this);
545
- oe.aConstraints.gridx += 1;
546
- oe.toolbarPanel.add(closeButton = new cButton(" X ")); //, oe.aConstraints);
491
+
492
+ oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
493
+ closeButton.setToolTipText("Close tab");
547494 closeButton.addActionListener(this);
548495 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
549496 //clearButton.addActionListener(this);
550
- oe.aConstraints.gridx += 1;
551497
552
- oe.aConstraints.gridx = 1; //
553
- 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");
554502 editButton.addActionListener(this);
555
- oe.aConstraints.gridx += 1;
556
- oe.aConstraints.weighty = 0;
557
- oe.aConstraints.gridwidth = 1;
558503
559
- oe.treePanel.add(uneditButton = new cButton("-"), oe.aConstraints);
504
+ commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
505
+ uneditButton.setToolTipText("Unedit selection");
560506 uneditButton.addActionListener(this);
561507
562
- oe.aConstraints.gridx += 1;
563
- oe.aConstraints.weighty = 0;
564
- oe.aConstraints.gridwidth = 1;
565
-
566
- 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");
567510 clearPanelButton.addActionListener(this);
568511
569
- oe.aConstraints.gridx += 1;
570
- oe.aConstraints.weighty = 0;
571
- oe.aConstraints.gridwidth = 1;
572
-
573
- 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??");
574514 allParamsButton.addActionListener(this);
575515
576
- oe.aConstraints.gridx += 1;
577
- oe.aConstraints.weighty = 0;
578
- oe.aConstraints.gridwidth = 1;
579
-
580
- oe.treePanel.add(unselectButton = new cButton("U"), oe.aConstraints);
516
+ commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
517
+ unselectButton.setToolTipText("Unselect");
581518 unselectButton.addActionListener(this);
582519
520
+ commandsPanel.preferredHeight = 1;
521
+
522
+ oe.treePanel.add(commandsPanel);
523
+ oe.treePanel.Return();
524
+
583525 // oe.aConstraints.gridx += 1;
584526 // oe.aConstraints.weighty = 0;
585527 // oe.aConstraints.gridwidth = 1;
....@@ -591,40 +533,37 @@
591533 // oe.treePanel.add(gcButton = new cButton("GC"), oe.aConstraints);
592534 // gcButton.addActionListener(this);
593535
594
- oe.aConstraints.gridx = 0;
595
- oe.aConstraints.gridy += 1;
596
-
597
- //ctrlPanel.add(objList = new List(5, true));
598
- oe.aConstraints.gridwidth = 100;
599
- // oe.aConstraints.gridheight = 100;
600
- oe.aConstraints.fill = GridBagConstraints.BOTH; // HORIZONTAL;
601
- oe.aConstraints.gridheight = 1;
602
- oe.aConstraints.weighty = 0.5;
603
- oe.aConstraints.gridx = 0;
604
- JScrollPane jSP;
536
+ cGridBag jSPPanel = new cGridBag();
537
+
538
+ JScrollPane jSP;
605539 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
606
- 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);
607541 ResetModel();
608
- oe.aConstraints.weighty = 0.5;
609
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
610
- oe.aConstraints.gridy += 1;
611
- oe.aConstraints.gridwidth = 1;
542
+
543
+ oe.treePanel.add(jSPPanel);
544
+ oe.treePanel.Return();
612545
613
- oe.aConstraints.weighty = 0;
614
- oe.aConstraints.gridwidth = 2;
615
-
616
- 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");
617550 colorCB.addItemListener(this);
618
- oe.aConstraints.gridx += 2;
619
- 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");
620554 materialCB.addItemListener(this);
621
- oe.aConstraints.gridx += 2;
622
- 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");
623558 textureCB.addItemListener(this);
624559
625
- oe.aConstraints.gridx = 0;
626
- oe.aConstraints.gridy += 1;
560
+ copyOptionsPanel.preferredHeight = 1;
561
+ oe.treePanel.add(copyOptionsPanel);
562
+ oe.treePanel.Return();
627563
564
+// mainPanel.setDividerLocation(0.5); //1.0);
565
+// mainPanel.setResizeWeight(0.5);
566
+
628567 //jList.addListSelectionListener(this);
629568 oe.jTree.addTreeSelectionListener(this);
630569 //jTree.setRootVisible(false);
....@@ -646,6 +585,74 @@
646585 radio.layout = sevenButton;
647586 oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
648587 }
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
+ }
649656
650657 void EditObject(Object3D obj)
651658 {
....@@ -676,6 +683,7 @@
676683 JCheckBox fastCB;
677684 JCheckBox slowCB;
678685 JCheckBox boxCB;
686
+ JCheckBox zoomBoxCB;
679687 JCheckBox trackCB;
680688 JCheckBox smoothfocusCB;
681689 // JCheckBox speakerMocapCB;
....@@ -755,6 +763,10 @@
755763 Recompile();
756764 cameraView.repaint();
757765 // refreshContents();
766
+ }
767
+ else if(e.getSource() == zoomBoxCB)
768
+ {
769
+ cameraView.ToggleZoomBoxMode();
758770 }
759771 else if(e.getSource() == smoothfocusCB)
760772 {
....@@ -1087,7 +1099,7 @@
10871099 {
10881100 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
10891101 animationItem.addItemListener(this);
1090
- animationItem.setState(CameraPane.ANIMATION);
1102
+ animationItem.setState(Globals.ANIMATION);
10911103
10921104 menu.add("-");
10931105 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
....@@ -1482,6 +1494,7 @@
14821494 //
14831495 public void actionPerformed(ActionEvent event) // , Object arg)
14841496 {
1497
+ Object source = event.getSource();
14851498 /*
14861499 if (event.getSource() == nameField)
14871500 {
....@@ -1493,11 +1506,11 @@
14931506 }
14941507 else
14951508 */
1496
- if (event.getSource() == lookAtItem || event.getSource() == lookFromItem)
1509
+ if (source == lookAtItem || source == lookFromItem)
14971510 {
14981511 ScreenFit();
14991512 } else
1500
- if (event.getSource() == switchItem)
1513
+ if (source == switchItem)
15011514 {
15021515 cVector v1 = new cVector();
15031516 cVector v2 = new cVector();
....@@ -1506,11 +1519,11 @@
15061519 objEditor.cameraView.renderCamera.setAim(v2, v1);
15071520 objEditor.cameraView.repaint();
15081521 } else
1509
- if (event.getSource() == rectoidItem)
1522
+ if (source == rectoidItem)
15101523 {
15111524 makeSomething(new Box());
15121525 } else
1513
- if (event.getSource() == particleItem)
1526
+ if (source == particleItem)
15141527 {
15151528 ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType);
15161529 ParticleController particleController = new ParticleController(particleGeom);
....@@ -1531,9 +1544,9 @@
15311544 applyExample(particleGeom, "SMOKE");
15321545 makeSomething(particleGeom);
15331546 } else
1534
- if (event.getSource() == ragdollItem || event.getSource() == ragdoll2Item)
1547
+ if (source == ragdollItem || source == ragdoll2Item)
15351548 {
1536
- GenericJoint ragdoll = new GenericJoint(event.getSource() == ragdollItem);
1549
+ GenericJoint ragdoll = new GenericJoint(source == ragdollItem);
15371550
15381551 ragdoll.toParent = LA.newMatrix();
15391552 ragdoll.fromParent = LA.newMatrix();
....@@ -1551,7 +1564,7 @@
15511564 } else
15521565 /*
15531566 */
1554
- if (event.getSource() == heightFieldItem)
1567
+ if (source == heightFieldItem)
15551568 {
15561569 Object3D obj = new Object3D();
15571570
....@@ -1589,31 +1602,31 @@
15891602
15901603 makeSomething(obj);
15911604 } else
1592
- if (event.getSource() == gridItem)
1605
+ if (source == gridItem)
15931606 {
15941607 makeSomething(new Grid());
15951608 } else
1596
- if (event.getSource() == ellipsoidItem)
1609
+ if (source == ellipsoidItem)
15971610 {
15981611 makeSomething(new Sphere());
15991612 } else
1600
- if (event.getSource() == coneItem)
1613
+ if (source == coneItem)
16011614 {
16021615 makeSomething(new Cone());
16031616 } else
1604
- if (event.getSource() == torusItem)
1617
+ if (source == torusItem)
16051618 {
16061619 makeSomething(new Torus());
16071620 } else
1608
- if (event.getSource() == superItem)
1621
+ if (source == superItem)
16091622 {
16101623 makeSomething(new Superellipsoid());
16111624 } else
1612
- if (event.getSource() == kleinItem)
1625
+ if (source == kleinItem)
16131626 {
16141627 makeSomething(new Klein());
16151628 } else
1616
- if (event.getSource() == blobItem)
1629
+ if (source == blobItem)
16171630 {
16181631 Blob blob = new Blob();
16191632 BlobComponent comp = new BlobComponent();
....@@ -1621,15 +1634,15 @@
16211634 //blob.retile();
16221635 makeSomething(blob);
16231636 } else
1624
- if (event.getSource() == latheItem)
1637
+ if (source == latheItem)
16251638 {
16261639 makeSomething(new Lathe());
16271640 } else
1628
- if (event.getSource() == bezierItem)
1641
+ if (source == bezierItem)
16291642 {
16301643 makeSomething(new BezierSurface());
16311644 } else
1632
- if (event.getSource() == checkerItem)
1645
+ if (source == checkerItem)
16331646 {
16341647 /*
16351648 Object3D obj = new BezierSurface(5,8);
....@@ -1644,7 +1657,7 @@
16441657 */
16451658 makeSomething(new Checker());
16461659 } else
1647
- if (event.getSource() == meshItem)
1660
+ if (source == meshItem)
16481661 {
16491662 Object3D itemtomake = new Object3D();
16501663 Object3D child;
....@@ -1665,35 +1678,35 @@
16651678 makeSomething(child);
16661679 }
16671680 } else
1668
- if (event.getSource() == springItem)
1681
+ if (source == springItem)
16691682 {
16701683 cSpring s = new cSpring();
16711684 s.setup();
16721685 makeSomething(s);
16731686 } else
1674
- if (event.getSource() == flagItem)
1687
+ if (source == flagItem)
16751688 {
16761689 cSpring s = new cFlag();
16771690 s.setup();
16781691 makeSomething(s);
16791692 } else
1680
- if (event.getSource() == lightItem)
1693
+ if (source == lightItem)
16811694 {
16821695 makeSomething(new Light());
16831696 } else
1684
- if (event.getSource() == csgItem)
1697
+ if (source == csgItem)
16851698 {
16861699 group(new CSG());
16871700 } else
1688
- if (event.getSource() == templateItem)
1701
+ if (source == templateItem)
16891702 {
16901703 group(new cTemplate());
16911704 } else
1692
- if (event.getSource() == attributeItem)
1705
+ if (source == attributeItem)
16931706 {
16941707 makeSomething(new Attribute());
16951708 } else
1696
- if (event.getSource() == pointflowItem)
1709
+ if (source == pointflowItem)
16971710 {
16981711 makeSomething(new PointFlow());
16991712 } else
....@@ -1705,7 +1718,7 @@
17051718 } else
17061719 */
17071720
1708
- if (event.getSource() == superLoopItem)
1721
+ if (source == superLoopItem)
17091722 {
17101723 Composite g = new cGroup();
17111724 for (int i=0; i<15; i++)
....@@ -1727,7 +1740,7 @@
17271740
17281741 group(g);
17291742 } else
1730
- if (event.getSource() == loopItem)
1743
+ if (source == loopItem)
17311744 {
17321745 Composite csg = new GroupLeaf();
17331746 csg.count = 5;
....@@ -1736,7 +1749,7 @@
17361749 csg.addChild(child);
17371750 child.addChild(csg);
17381751 } else
1739
- if (event.getSource() == doubleItem)
1752
+ if (source == doubleItem)
17401753 {
17411754 Composite csg = new GroupLeaf();
17421755 csg.count = 5;
....@@ -1748,7 +1761,7 @@
17481761 csg.addChild(child);
17491762 child.addChild(csg);
17501763 } else
1751
- if (event.getSource() == tripleItem)
1764
+ if (source == tripleItem)
17521765 {
17531766 Composite csg = new GroupLeaf();
17541767 csg.count = 4;
....@@ -1764,70 +1777,70 @@
17641777 child.addChild(csg);
17651778 } else
17661779
1767
- if (event.getSource() == importGFDItem)
1780
+ if (source == importGFDItem)
17681781 {
17691782 ImportGFD();
17701783 } else
1771
- if (event.getSource() == importVRMLX3DItem)
1784
+ if (source == importVRMLX3DItem)
17721785 {
17731786 ImportVRMLX3D();
17741787 } else
1775
- if (event.getSource() == import3DSItem)
1788
+ if (source == import3DSItem)
17761789 {
17771790 objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS");
17781791 } else
1779
- if (event.getSource() == importOBJItem)
1792
+ if (source == importOBJItem)
17801793 {
17811794 objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ");
17821795 } else
1783
- if (event.getSource() == computeAOItem)
1796
+ if (source == computeAOItem)
17841797 {
17851798 Globals.drawMode = CameraPane.OCCLUSION;
17861799 Globals.theRenderer.repaint();
17871800 } else
1788
- if (event.getSource() == recompileItem)
1801
+ if (source == recompileItem)
17891802 {
17901803 Recompile();
17911804 refreshContents();
17921805 } else
1793
- if (event.getSource() == editScriptItem)
1806
+ if (source == editScriptItem)
17941807 {
17951808 OpenDialog();
17961809 refreshContents();
17971810 } else
1798
- if (event.getSource() == invariantsItem)
1811
+ if (source == invariantsItem)
17991812 {
18001813 System.out.println("Invariants:");
18011814 GrafreeD.grafreeD.universe.invariants();
18021815 } else
1803
- if (event.getSource() == memoryItem)
1816
+ if (source == memoryItem)
18041817 {
18051818 //System.out.println("Invariants:");
18061819 PrintMemory();
18071820 } else
1808
- if (event.getSource() == pathItem)
1821
+ if (source == pathItem)
18091822 {
18101823 PrintPath();
18111824 } else
1812
- if (event.getSource() == analyzeItem)
1825
+ if (source == analyzeItem)
18131826 {
18141827 AnalyzeObject();
18151828 } else
1816
- if (event.getSource() == dumpItem)
1829
+ if (source == dumpItem)
18171830 {
18181831 DumpObject();
18191832 } else
1820
- if (event.getSource() == screenfitButton)
1833
+ if (source == screenfitButton)
18211834 {
18221835 //Reload(lastConverter, lastFilename, true);
18231836 ScreenFit();
18241837 } else
1825
- if (event.getSource() == screenfitpointButton)
1838
+ if (source == screenfitpointButton)
18261839 {
18271840 //Reload(lastConverter, lastFilename, true);
18281841 ScreenFitPoint();
18291842 } else
1830
- if (event.getSource() == snapobjectButton)
1843
+ if (source == snapobjectButton)
18311844 {
18321845 //Reload(lastConverter, lastFilename, true);
18331846 SnapObject();
....@@ -1838,13 +1851,13 @@
18381851 // Recompile();
18391852 // refreshContents();
18401853 // } else
1841
- if (event.getSource() == gcButton)
1854
+ if (source == gcButton)
18421855 {
18431856 System.out.println("Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18441857 System.gc();
18451858 System.out.println("GC Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory());
18461859 } else
1847
- if (event.getSource() == editLeafItem)
1860
+ if (source == editLeafItem)
18481861 {
18491862 Object3D obj;
18501863 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -1858,62 +1871,62 @@
18581871 }
18591872 refreshContents(true);
18601873 } else
1861
- if (event.getSource() == openWindowItem)
1874
+ if (source == openWindowItem)
18621875 {
18631876 EditSelection(true);
18641877 } else
1865
- if (event.getSource() == cutItem || event.getSource() == clearButton)
1878
+ if (source == cutItem || source == clearButton)
18661879 {
18671880 loadClipboard(true);
18681881 } else
1869
- if (event.getSource() == duplicateItem)
1882
+ if (source == duplicateItem)
18701883 {
18711884 Object3D keep = GrafreeD.clipboard;
18721885 loadClipboard(false);
18731886 paste(false);
18741887 GrafreeD.clipboard = keep;
18751888 } else
1876
- if (event.getSource() == cloneItem)
1889
+ if (source == cloneItem)
18771890 {
18781891 CloneSelection(false);
18791892 } else
1880
- if (event.getSource() == cloneSupportItem)
1893
+ if (source == cloneSupportItem)
18811894 {
18821895 CloneSelection(true);
18831896 } else
1884
- if (event.getSource() == copyItem)
1897
+ if (source == copyItem)
18851898 {
18861899 loadClipboard(false);
18871900 } else
1888
- if (event.getSource() == pasteItem)
1901
+ if (source == pasteItem)
18891902 {
18901903 paste(false);
18911904 } else
1892
- if (event.getSource() == pasteLinkItem)
1905
+ if (source == pasteLinkItem)
18931906 {
18941907 pasteInto(false);
18951908 } else
1896
- if (event.getSource() == pasteCloneItem)
1909
+ if (source == pasteCloneItem)
18971910 {
18981911 pasteInto(true);
18991912 } else
1900
- if (event.getSource() == pasteExpandItem)
1913
+ if (source == pasteExpandItem)
19011914 {
19021915 paste(true);
19031916 } else
1904
- if (event.getSource() == synchronizeItem)
1917
+ if (source == synchronizeItem)
19051918 {
19061919 Overwrite(Object3D.TRANSFORM);
19071920 } else
1908
- if (event.getSource() == overwriteNameItem)
1921
+ if (source == overwriteNameItem)
19091922 {
19101923 Overwrite(Object3D.NAME);
19111924 } else
1912
- if (event.getSource() == overwriteUVItem)
1925
+ if (source == overwriteUVItem)
19131926 {
19141927 Overwrite(Object3D.UV);
19151928 } else
1916
- if (event.getSource() == overwriteMatItem)
1929
+ if (source == overwriteMatItem)
19171930 {
19181931 /* july 2015
19191932 if ((dropAttributes & Object3D.TEXTURE) == 0)
....@@ -1933,7 +1946,7 @@
19331946
19341947 Overwrite(dropAttributes);
19351948 }
1936
- if (event.getSource() == overwriteGeoItem)
1949
+ if (source == overwriteGeoItem)
19371950 {
19381951 Overwrite(Object3D.GEOMETRY);
19391952 // if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1)
....@@ -1950,7 +1963,7 @@
19501963 // refreshContents();
19511964 // }
19521965 } else
1953
- if (event.getSource() == generateMeshItem)
1966
+ if (source == generateMeshItem)
19541967 {
19551968 //if (group.selection.size() == 1)
19561969 // for (int i=0; i<group.selection.size(); i++)
....@@ -1961,7 +1974,7 @@
19611974 ResetModel();
19621975 refreshContents();
19631976 } else
1964
- if (event.getSource() == extractGeometriesItem)
1977
+ if (source == extractGeometriesItem)
19651978 {
19661979 boolean one = false;
19671980
....@@ -1988,7 +2001,7 @@
19882001 ResetModel();
19892002 refreshContents();
19902003 } else
1991
- if (event.getSource() == cloneGeometriesItem)
2004
+ if (source == cloneGeometriesItem)
19922005 {
19932006 boolean one = false;
19942007
....@@ -2014,7 +2027,7 @@
20142027 ResetModel();
20152028 refreshContents();
20162029 } else
2017
- if (event.getSource() == shareGeometriesItem)
2030
+ if (source == shareGeometriesItem)
20182031 {
20192032 boolean one = false;
20202033
....@@ -2044,7 +2057,7 @@
20442057 refreshContents();
20452058 }
20462059 } else
2047
- if (event.getSource() == mergeGeometriesItem)
2060
+ if (source == mergeGeometriesItem)
20482061 {
20492062 boolean one = false;
20502063
....@@ -2074,7 +2087,7 @@
20742087 ResetModel();
20752088 refreshContents();
20762089 } else
2077
- if (event.getSource() == linkverticesItem)
2090
+ if (source == linkverticesItem)
20782091 {
20792092 // if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
20802093 // {
....@@ -2107,7 +2120,7 @@
21072120 refreshContents();
21082121 }
21092122 } else
2110
- if (event.getSource() == resetsupportItem)
2123
+ if (source == resetsupportItem)
21112124 {
21122125 for (int i=0; i<group.selection.size(); i++)
21132126 {
....@@ -2119,7 +2132,7 @@
21192132
21202133 refreshContents();
21212134 } else
2122
- if (event.getSource() == relinkverticesItem)
2135
+ if (source == relinkverticesItem)
21232136 {
21242137 boolean random = CameraPane.RANDOM;
21252138 CameraPane.RANDOM = false; // parse all random nodes
....@@ -2128,7 +2141,7 @@
21282141
21292142 refreshContents();
21302143 } else
2131
- if (event.getSource() == resetreferencesItem)
2144
+ if (source == resetreferencesItem)
21322145 {
21332146 for (int i=0; i<group.selection.size(); i++)
21342147 {
....@@ -2137,7 +2150,7 @@
21372150
21382151 refreshContents();
21392152 } else
2140
- if (event.getSource() == setMasterItem)
2153
+ if (source == setMasterItem)
21412154 {
21422155 if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1)
21432156 {
....@@ -2150,7 +2163,7 @@
21502163 refreshContents();
21512164 }
21522165 } else
2153
- if (event.getSource() == poseMeshItem)
2166
+ if (source == poseMeshItem)
21542167 {
21552168 if (group.selection.size() == 1)
21562169 {
....@@ -2169,19 +2182,19 @@
21692182 }
21702183
21712184 } else
2172
- if (event.getSource() == revertMeshItem)
2185
+ if (source == revertMeshItem)
21732186 {
21742187 RevertMeshes();
21752188 } else
2176
- if (event.getSource() == resetMeshItem)
2189
+ if (source == resetMeshItem)
21772190 {
21782191 ResetAll();
21792192 } else
2180
- if (event.getSource() == stepAllItem)
2193
+ if (source == stepAllItem)
21812194 {
21822195 StepAll();
21832196 } else
2184
- if (event.getSource() == clearItem) // || event.getSource() == clearButton)
2197
+ if (source == clearItem) // || event.getSource() == clearButton)
21852198 {
21862199 //int indices[] = jList.getSelectedIndices();
21872200 //for (int i = indices.length - 1; i >= 0; i--)
....@@ -2189,46 +2202,46 @@
21892202
21902203 ClearSelection(false);
21912204 } else
2192
- if (event.getSource() == clearAllItem)
2205
+ if (source == clearAllItem)
21932206 {
21942207 ClearSelection(true);
21952208 } else
2196
- if (event.getSource() == grabItem)
2209
+ if (source == grabItem)
21972210 {
21982211 group(new cGroup(), true);
21992212 } else
2200
- if (event.getSource() == hideItem)
2213
+ if (source == hideItem)
22012214 {
22022215 group(new HiddenObject());
22032216 } else
2204
- if (event.getSource() == frontItem)
2217
+ if (source == frontItem)
22052218 {
22062219 front();
22072220 } else
2208
- if (event.getSource() == backItem)
2221
+ if (source == backItem)
22092222 {
22102223 back();
22112224 } else
2212
- if (event.getSource() == cameraItem)
2225
+ if (source == cameraItem)
22132226 {
22142227 makeSomething(new Camera());
22152228 } else
2216
- if (event.getSource() == compositeItem)
2229
+ if (source == compositeItem)
22172230 {
22182231 group(new Composite());
22192232 } else
2220
- if (event.getSource() == randomItem)
2233
+ if (source == randomItem)
22212234 {
22222235 RandomNode random = new RandomNode();
22232236 group(random);
22242237 if (random.size() > 0)
2225
- random.name = random.get(0).name + "Rnd";
2238
+ random.name = random.get(0).name + "Switch";
22262239 } else
2227
- if (event.getSource() == physicsItem)
2240
+ if (source == physicsItem)
22282241 {
22292242 group(new PhysicsNode());
22302243 } else
2231
- if (event.getSource() == frameselectorItem)
2244
+ if (source == frameselectorItem)
22322245 {
22332246 for (int i=0; i<group.selection.size(); i++)
22342247 {
....@@ -2240,7 +2253,7 @@
22402253 ResetModel();
22412254 refreshContents();
22422255 } else
2243
- if (event.getSource() == switchGeoItem)
2256
+ if (source == switchGeoItem)
22442257 {
22452258 for (int i=0; i<group.selection.size(); i++)
22462259 {
....@@ -2252,7 +2265,7 @@
22522265 ResetModel();
22532266 refreshContents();
22542267 } else
2255
- if (event.getSource() == switchTransfoItem)
2268
+ if (source == switchTransfoItem)
22562269 {
22572270 for (int i=0; i<group.selection.size(); i++)
22582271 {
....@@ -2264,7 +2277,7 @@
22642277 ResetModel();
22652278 refreshContents();
22662279 } else
2267
- if (event.getSource() == morphItem)
2280
+ if (source == morphItem)
22682281 {
22692282 for (int i=0; i<group.selection.size(); i++)
22702283 {
....@@ -2276,7 +2289,7 @@
22762289 ResetModel();
22772290 refreshContents();
22782291 } else
2279
- if (event.getSource() == scriptNodeItem)
2292
+ if (source == scriptNodeItem)
22802293 {
22812294 boolean atleastone = false;
22822295
....@@ -2315,31 +2328,31 @@
23152328 }
23162329 }
23172330 } else
2318
- if (event.getSource() == linkerItem)
2331
+ if (source == linkerItem)
23192332 {
23202333 group(new cLinker());
23212334 } else
2322
- if (event.getSource() == textureItem)
2335
+ if (source == textureItem)
23232336 {
23242337 group(new TextureNode());
23252338 } else
2326
- if (event.getSource() == billboardItem)
2339
+ if (source == billboardItem)
23272340 {
23282341 group(new BillboardNode());
23292342 } else
2330
- if (event.getSource() == shadowXItem)
2343
+ if (source == shadowXItem)
23312344 {
23322345 CastShadow(0);
23332346 } else
2334
- if (event.getSource() == shadowYItem)
2347
+ if (source == shadowYItem)
23352348 {
23362349 CastShadow(1);
23372350 } else
2338
- if (event.getSource() == shadowZItem)
2351
+ if (source == shadowZItem)
23392352 {
23402353 CastShadow(2);
23412354 } else
2342
- if (event.getSource() == ungroupItem)
2355
+ if (source == ungroupItem)
23432356 {
23442357 //ungroup();
23452358 for (int i=0; i<group.selection.size(); i++)
....@@ -2351,179 +2364,179 @@
23512364
23522365 refreshContents();
23532366 } else
2354
- if (event.getSource() == genUVItem)
2367
+ if (source == genUVItem)
23552368 {
23562369 GenUV();
23572370 } else
2358
- if (event.getSource() == genNormalsCADItem)
2371
+ if (source == genNormalsCADItem)
23592372 {
23602373 GenNormals(true);
23612374 } else
2362
- if (event.getSource() == genNormalsMESHItem)
2375
+ if (source == genNormalsMESHItem)
23632376 {
23642377 GenNormals(true); // TODO
23652378 } else
2366
- if (event.getSource() == genNormalsORGANItem)
2379
+ if (source == genNormalsORGANItem)
23672380 {
23682381 GenNormals(false);
23692382 } else
2370
- if (event.getSource() == genNormalsMINEItem)
2383
+ if (source == genNormalsMINEItem)
23712384 {
23722385 GenNormalsMINE();
23732386 } else
2374
- if (event.getSource() == stripifyItem)
2387
+ if (source == stripifyItem)
23752388 {
23762389 Stripify();
23772390 } else
2378
- if (event.getSource() == unstripifyItem)
2391
+ if (source == unstripifyItem)
23792392 {
23802393 Unstripify();
23812394 } else
2382
- if (event.getSource() == trimItem)
2395
+ if (source == trimItem)
23832396 {
23842397 Trim();
23852398 } else
2386
- if (event.getSource() == untrimItem)
2399
+ if (source == untrimItem)
23872400 {
23882401 Untrim();
23892402 } else
2390
- if (event.getSource() == clearColorsItem)
2403
+ if (source == clearColorsItem)
23912404 {
23922405 ClearColors();
23932406 } else
2394
- if (event.getSource() == clearMaterialsItem)
2407
+ if (source == clearMaterialsItem)
23952408 {
23962409 ClearMaterials();
23972410 } else
2398
- if (event.getSource() == liveleavesItem)
2411
+ if (source == liveleavesItem)
23992412 {
24002413 LiveLeaves(true);
24012414 } else
2402
- if (event.getSource() == unliveleavesItem)
2415
+ if (source == unliveleavesItem)
24032416 {
24042417 LiveLeaves(false);
24052418 } else
2406
- if (event.getSource() == supportleavesItem)
2419
+ if (source == supportleavesItem)
24072420 {
24082421 SupportLeaves(true);
24092422 } else
2410
- if (event.getSource() == unsupportleavesItem)
2423
+ if (source == unsupportleavesItem)
24112424 {
24122425 SupportLeaves(false);
24132426 } else
2414
- if (event.getSource() == hideleavesItem)
2427
+ if (source == hideleavesItem)
24152428 {
24162429 HideLeaves(true);
24172430 } else
2418
- if (event.getSource() == showleavesItem)
2431
+ if (source == showleavesItem)
24192432 {
24202433 HideLeaves(false);
24212434 } else
2422
- if (event.getSource() == markleavesItem)
2435
+ if (source == markleavesItem)
24232436 {
24242437 MarkLeaves(true);
24252438 } else
2426
- if (event.getSource() == unmarkleavesItem)
2439
+ if (source == unmarkleavesItem)
24272440 {
24282441 MarkLeaves(false);
24292442 } else
2430
- if (event.getSource() == flipVItem)
2443
+ if (source == flipVItem)
24312444 {
24322445 FlipV(true);
24332446 } else
2434
- if (event.getSource() == unflipVItem)
2447
+ if (source == unflipVItem)
24352448 {
24362449 FlipV(false);
24372450 } else
2438
- if (event.getSource() == lowTexturesItem)
2451
+ if (source == lowTexturesItem)
24392452 {
24402453 SetTexRes(0);
24412454 } else
2442
- if (event.getSource() == normalTexturesItem)
2455
+ if (source == normalTexturesItem)
24432456 {
24442457 SetTexRes(1);
24452458 } else
2446
- if (event.getSource() == highTexturesItem)
2459
+ if (source == highTexturesItem)
24472460 {
24482461 SetTexRes(2);
24492462 } else
2450
- if (event.getSource() == veryhighTexturesItem)
2463
+ if (source == veryhighTexturesItem)
24512464 {
24522465 SetTexRes(3);
24532466 } else
2454
- if (event.getSource() == maxTexturesItem)
2467
+ if (source == maxTexturesItem)
24552468 {
24562469 SetTexRes(4);
24572470 } else
2458
- if (event.getSource() == panoTexturesItem)
2471
+ if (source == panoTexturesItem)
24592472 {
24602473 SetTexRes(5);
24612474 } else
2462
- if (event.getSource() == reverseNormalsItem)
2475
+ if (source == reverseNormalsItem)
24632476 {
24642477 ReverseNormals();
24652478 } else
2466
- if (event.getSource() == parseverticesItem)
2479
+ if (source == parseverticesItem)
24672480 {
24682481 ParseVertices();
24692482 } else
2470
- if (event.getSource() == textureFieldItem)
2483
+ if (source == textureFieldItem)
24712484 {
24722485 TextureVertices();
24732486 } else
2474
- if (event.getSource() == alignItem)
2487
+ if (source == alignItem)
24752488 {
24762489 Align();
24772490 } else
2478
- if (event.getSource() == mirrorItem)
2491
+ if (source == mirrorItem)
24792492 {
24802493 MirrorPoses();
24812494 } else
2482
- if (event.getSource() == reduceMorphItem)
2495
+ if (source == reduceMorphItem)
24832496 {
24842497 MeshReduction(false);
24852498 } else
2486
- if (event.getSource() == reduce34MorphItem)
2499
+ if (source == reduce34MorphItem)
24872500 {
24882501 MeshReduction(true);
24892502 } else
2490
- if (event.getSource() == reverseTrianglesItem)
2503
+ if (source == reverseTrianglesItem)
24912504 {
24922505 ReverseTriangles();
24932506 } else
2494
- if (event.getSource() == reduceMeshItem)
2507
+ if (source == reduceMeshItem)
24952508 {
24962509 ReduceMesh(false);
24972510 } else
2498
- if (event.getSource() == reduce34MeshItem)
2511
+ if (source == reduce34MeshItem)
24992512 {
25002513 ReduceMesh(true);
25012514 } else
2502
- if (event.getSource() == increaseMeshItem)
2515
+ if (source == increaseMeshItem)
25032516 {
25042517 IncreaseMesh();
25052518 } else
2506
- if (event.getSource() == clipMeshItem)
2519
+ if (source == clipMeshItem)
25072520 {
25082521 ClipMesh();
25092522 } else
2510
- if (event.getSource() == smoothMeshItem)
2523
+ if (source == smoothMeshItem)
25112524 {
25122525 SmoothMesh();
25132526 } else
2514
- if (event.getSource() == transformgeometryItem)
2527
+ if (source == transformgeometryItem)
25152528 {
25162529 TransformGeometry();
25172530 } else
2518
- if (event.getSource() == resetTransformItem)
2531
+ if (source == resetTransformItem)
25192532 {
25202533 ResetTransform();
25212534 } else
2522
- if (event.getSource() == resetCentroidItem)
2535
+ if (source == resetCentroidItem)
25232536 {
25242537 ResetCentroid();
25252538 } else
2526
- if (event.getSource() == resetParentItem)
2539
+ if (source == resetParentItem)
25272540 {
25282541 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25292542 {
....@@ -2533,7 +2546,7 @@
25332546
25342547 refreshContents();
25352548 } else
2536
- if (event.getSource() == repairParentItem)
2549
+ if (source == repairParentItem)
25372550 {
25382551 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25392552 {
....@@ -2547,7 +2560,7 @@
25472560
25482561 refreshContents();
25492562 } else
2550
- if (event.getSource() == repairShadowItem)
2563
+ if (source == repairShadowItem)
25512564 {
25522565 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25532566 {
....@@ -2561,7 +2574,7 @@
25612574
25622575 refreshContents();
25632576 } else
2564
- if (event.getSource() == sortbysizeItem)
2577
+ if (source == sortbysizeItem)
25652578 {
25662579 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25672580 {
....@@ -2573,7 +2586,7 @@
25732586 ResetModel();
25742587 refreshContents();
25752588 } else
2576
- if (event.getSource() == sortbynameItem)
2589
+ if (source == sortbynameItem)
25772590 {
25782591 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
25792592 {
....@@ -2585,7 +2598,7 @@
25852598 ResetModel();
25862599 refreshContents();
25872600 } else
2588
- if (event.getSource() == attachPigmentItem)
2601
+ if (source == attachPigmentItem)
25892602 {
25902603 String texture = GetFile("Attach pigment");
25912604 Object3D obj;
....@@ -2597,7 +2610,7 @@
25972610
25982611 refreshContents();
25992612 } else
2600
- if (event.getSource() == detachPigmentItem)
2613
+ if (source == detachPigmentItem)
26012614 {
26022615 Object3D obj;
26032616 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2608,7 +2621,7 @@
26082621
26092622 refreshContents();
26102623 } else
2611
- if (event.getSource() == attachBumpItem)
2624
+ if (source == attachBumpItem)
26122625 {
26132626 String texture = GetFile("Attach bump");
26142627 Object3D obj;
....@@ -2620,7 +2633,7 @@
26202633
26212634 refreshContents();
26222635 } else
2623
- if (event.getSource() == detachBumpItem)
2636
+ if (source == detachBumpItem)
26242637 {
26252638 Object3D obj;
26262639 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2631,7 +2644,7 @@
26312644
26322645 refreshContents();
26332646 } else
2634
- if (event.getSource() == pigmentBumpItem)
2647
+ if (source == pigmentBumpItem)
26352648 {
26362649 Object3D obj;
26372650 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2642,158 +2655,195 @@
26422655
26432656 refreshContents();
26442657 } else
2645
- if (event.getSource() == flashSelectionButton)
2658
+ if (source == flashSelectionButton)
26462659 {
26472660 CameraPane.flash = true;
26482661 refreshContents();
26492662 } else
2650
- if (event.getSource() == oneButton)
2663
+ if (source == oneButton)
26512664 {
26522665 } else
2653
- if (event.getSource() == twoButton)
2666
+ if (source == twoButton)
26542667 {
26552668 radio.layout = twoButton;
26562669 // bug
26572670 //gridPanel.setDividerLocation(1.0);
26582671 //bigPanel.setDividerLocation(0.0);
2659
- bigThree.remove(scenePanel);
2660
- bigThree.remove(centralPanel);
2661
- bigThree.remove(XYZPanel);
2662
- aWindowConstraints.gridx = 0;
2663
- aWindowConstraints.gridy = 0;
2664
- aWindowConstraints.gridwidth = 1;
2665
- // aConstraints.gridheight = 3;
2666
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2667
- aWindowConstraints.weightx = 0;
2668
- aWindowConstraints.weighty = 1;
2669
- //bigThree.add(jtp, aWindowConstraints);
2670
- aWindowConstraints.weightx = 1;
2671
- aWindowConstraints.gridwidth = 3;
2672
- // aConstraints.gridheight = 3;
2673
- aWindowConstraints.gridx = 1;
2674
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2675
- bigThree.add(centralPanel, aWindowConstraints);
2676
- aWindowConstraints.weightx = 0;
2677
- aWindowConstraints.gridx = 4;
2678
- aWindowConstraints.gridwidth = 1;
2679
- // aConstraints.gridheight = 3;
2680
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2681
- //bigThree.add(XYZPanel, aWindowConstraints);
2682
- 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();
26832701 } else
2684
- if (event.getSource() == threeButton)
2702
+ if (source == threeButton)
26852703 {
26862704 radio.layout = threeButton;
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
- aConstraints.fill = GridBagConstraints.VERTICAL;
2709
- bigThree.add(XYZPanel, aWindowConstraints);
2710
- 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();
27112737 } else
2712
- if (event.getSource() == fourButton)
2738
+ if (source == fourButton)
27132739 {
27142740 radio.layout = fourButton;
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
- // aWindowConstraints.gridheight = 3;
2722
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2723
- aWindowConstraints.weightx = 1;
2724
- aWindowConstraints.weighty = 1;
2725
- bigThree.add(scenePanel, 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(cameraPanel, aWindowConstraints);
2732
- aWindowConstraints.weightx = 0;
2733
- aWindowConstraints.gridx = 4;
2734
- aWindowConstraints.gridwidth = 1;
2735
- // aWindowConstraints.gridheight = 3;
2736
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2737
- //bigThree.add(XYZPanel, aWindowConstraints);
2738
- 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();
27392772 } else
2740
- if (event.getSource() == sixButton)
2773
+ if (source == sixButton)
27412774 {
27422775 radio.layout = sixButton;
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
- // aConstraints.gridheight = 3;
2750
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2751
- aWindowConstraints.weightx = 0;
2752
- aWindowConstraints.weighty = 1;
2753
- bigThree.add(scenePanel, aWindowConstraints);
2754
- aWindowConstraints.weightx = 1;
2755
- aWindowConstraints.gridwidth = 3;
2756
- // aWindowConstraints.gridheight = 3;
2757
- aWindowConstraints.gridx = 1;
2758
- aWindowConstraints.fill = GridBagConstraints.BOTH;
2759
- bigThree.add(centralPanel, 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, aConstraints);
2766
- 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();
27672808 } else
2768
- if (event.getSource() == sevenButton)
2809
+ if (source == sevenButton)
27692810 {
27702811 radio.layout = sevenButton;
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
- // aWindowConstraints.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
- // aConstraints.gridheight = 3;
2792
- aWindowConstraints.fill = GridBagConstraints.VERTICAL;
2793
- bigThree.add(XYZPanel, aWindowConstraints);
2794
- 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();
27952845 } else
2796
- if (event.getSource() == rootButton)
2846
+ if (source == rootButton)
27972847 {
27982848 Object3D obj;
27992849 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -2805,7 +2855,7 @@
28052855
28062856 refreshContents(true);
28072857 } else
2808
- if (event.getSource() == closeButton)
2858
+ if (source == closeButton)
28092859 {
28102860 //System.out.println("CLOSE: " + buttonGroup.getSelection());
28112861 cRadio ab;
....@@ -2826,11 +2876,11 @@
28262876 }
28272877 refreshContents(true);
28282878 } else
2829
- if (event.getSource() == editItem || event.getSource() == editButton)
2879
+ if (source == editItem || source == editButton)
28302880 {
28312881 EditSelection(false);
28322882 } else
2833
- if (event.getSource() == uneditButton)
2883
+ if (source == uneditButton)
28342884 {
28352885 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
28362886 {
....@@ -2842,12 +2892,12 @@
28422892
28432893 child.editWindow = null; // ???????????
28442894 }
2845
- objEditor.ctrlPanel.revalidate();
2895
+ objEditor.ctrlPanel.validate();
28462896 //objEditor.jTree.clearSelection();
28472897 //objEditor.ResetSliders();
28482898 refreshContents(true);
28492899 } else
2850
- if (event.getSource() == clearPanelButton)
2900
+ if (source == clearPanelButton)
28512901 {
28522902 assert(copy == group);
28532903 //copy.ClearUI();
....@@ -2858,7 +2908,7 @@
28582908 listUI.clear();
28592909 refreshContents(true);
28602910 } else
2861
- if (event.getSource() == allParamsButton)
2911
+ if (source == allParamsButton)
28622912 {
28632913 assert(copy == group);
28642914
....@@ -2879,19 +2929,19 @@
28792929
28802930 refreshContents(true);
28812931 } else
2882
- if (event.getSource() == unselectButton)
2932
+ if (source == unselectButton)
28832933 {
28842934 objEditor.jTree.clearSelection();
28852935 // ?? oct 2012 GrafreeD.clipboard.clear();
28862936 objEditor.ResetSliders();
28872937 refreshContents(true);
28882938 } else
2889
- if(event.getSource() instanceof cRadio)
2939
+ if(source instanceof cRadio)
28902940 {
28912941 group.parent = keepparent;
28922942 group.attributes = 0;
28932943 //group.editWindow = null;
2894
- /*cRadio*/ radio = (cRadio)event.getSource();
2944
+ /*cRadio*/ radio = (cRadio)source;
28952945 Object3D obj = radio.GetObject();
28962946 System.out.println("Edit " + obj);
28972947 if (true) // obj instanceof Composite) // obj.parent == null) // obj instanceof Composite)
....@@ -4050,12 +4100,12 @@
40504100 System.err.println("info : " + child.GetPath());
40514101 }
40524102 }
4053
- else
4054
- {
4055
- objEditor.SetMaterial(group); // .GetMaterial());
4056
- objEditor.AddInfo(group, this, true); // .GetMaterial());
4057
- System.err.println("info : " + group.GetPath());
4058
- }
4103
+// else
4104
+// {
4105
+// objEditor.SetMaterial(group); // .GetMaterial());
4106
+// objEditor.AddInfo(group, this, true); // .GetMaterial());
4107
+// System.err.println("info : " + group.GetPath());
4108
+// }
40594109
40604110 objEditor.SetText(); // jan 2014
40614111