Normand Briere
2019-06-17 26b49d8e26625491f4a407a05e9bc9d72037f938
GroupEditor.java
....@@ -871,6 +871,7 @@
871871 } else if(e.getSource() == liveCB)
872872 {
873873 cameraView.ToggleLive();
874
+ refreshContents(false);
874875 }
875876 else if(e.getSource() == supportCB)
876877 {
....@@ -1278,7 +1279,7 @@
12781279 memoryItem.addActionListener(this);
12791280 menu.add(analyzeItem = new MenuItem("Analyze"));
12801281 analyzeItem.addActionListener(this);
1281
- menu.add(dumpItem = new MenuItem("Dump"));
1282
+ menu.add(dumpItem = new MenuItem("Print"));
12821283 dumpItem.addActionListener(this);
12831284 // menu.add(pathItem = new MenuItem("From-to path"));
12841285 // pathItem.addActionListener(this);
....@@ -2542,7 +2543,7 @@
25422543 } else
25432544 if (source == genNormalsMESHItem)
25442545 {
2545
- GenNormals(true); // TODO
2546
+ GenNormalsMESH();
25462547 } else
25472548 if (source == genNormalsORGANItem)
25482549 {
....@@ -3515,6 +3516,13 @@
35153516 refreshContents();
35163517 }
35173518
3519
+ void GenNormalsMESH()
3520
+ {
3521
+ group.GenNormalsMeshS();
3522
+
3523
+ refreshContents();
3524
+ }
3525
+
35183526 void GenNormalsMINE()
35193527 {
35203528 group.selection.GenNormalsMINE();
....@@ -4313,7 +4321,6 @@
43134321 //case 702: // Event.LIST_DESELECT
43144322 group.deselectAll();
43154323 TreePath tps[] = objEditor.jTree.getSelectionPaths();
4316
- objEditor.ClearInfo(); // .GetMaterial());
43174324 if (tps != null)
43184325 {
43194326 for (int i=0; i < tps.length; i++)
....@@ -4322,10 +4329,8 @@
43224329
43234330 //if (child.parent != null)
43244331 //child.parent.addSelectee(child);
4332
+ objEditor.SetMaterial(child);
43254333 group.addSelectee(child);
4326
- objEditor.SetMaterial(child); // .GetMaterial());
4327
- objEditor.AddInfo(child, this, true); // .GetMaterial());
4328
- System.err.println("info : " + child.GetPath());
43294334 }
43304335 }
43314336 // else
....@@ -4335,8 +4340,6 @@
43354340 // System.err.println("info : " + group.GetPath());
43364341 // }
43374342
4338
- objEditor.SetText(); // jan 2014
4339
-
43404343 if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
43414344 CameraPane.flash = true;
43424345
....@@ -4360,6 +4363,26 @@
43604363
43614364 freezemodel = false;
43624365 }
4366
+
4367
+ void refreshContents(boolean cp)
4368
+ {
4369
+ if (!Globals.MOUSEDRAGGED)
4370
+ {
4371
+ objEditor.ClearInfo(); // .GetMaterial());
4372
+
4373
+ for (int i=0; i < group.selection.Size(); i++)
4374
+ {
4375
+ Object3D child = (Object3D) group.selection.get(i);
4376
+
4377
+ objEditor.AddInfo(child, this, true);
4378
+ System.err.println("info : " + child.GetPath());
4379
+ }
4380
+
4381
+ objEditor.SetText(); // jan 2014
4382
+ }
4383
+
4384
+ super.refreshContents(cp);
4385
+ }
43634386
43644387 void linkSomething(Object3D thing)
43654388 {