Normand Briere
2019-06-16 7b6b5ba546450e71ecc812356952b594acc5add5
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++)
....@@ -4323,9 +4330,6 @@
43234330 //if (child.parent != null)
43244331 //child.parent.addSelectee(child);
43254332 group.addSelectee(child);
4326
- objEditor.SetMaterial(child); // .GetMaterial());
4327
- objEditor.AddInfo(child, this, true); // .GetMaterial());
4328
- System.err.println("info : " + child.GetPath());
43294333 }
43304334 }
43314335 // else
....@@ -4335,8 +4339,6 @@
43354339 // System.err.println("info : " + group.GetPath());
43364340 // }
43374341
4338
- objEditor.SetText(); // jan 2014
4339
-
43404342 if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
43414343 CameraPane.flash = true;
43424344
....@@ -4360,6 +4362,29 @@
43604362
43614363 freezemodel = false;
43624364 }
4365
+
4366
+ void refreshContents(boolean cp)
4367
+ {
4368
+ if (!Globals.MOUSEDRAGGED)
4369
+ {
4370
+ objEditor.ClearInfo(); // .GetMaterial());
4371
+
4372
+ for (int i=0; i < group.selection.size(); i++)
4373
+ {
4374
+ Object3D child = (Object3D) group.selection.reserve(i);
4375
+
4376
+ objEditor.SetMaterial(child);
4377
+ objEditor.AddInfo(child, this, true);
4378
+ System.err.println("info : " + child.GetPath());
4379
+
4380
+ group.selection.release(i);
4381
+ }
4382
+
4383
+ objEditor.SetText(); // jan 2014
4384
+ }
4385
+
4386
+ super.refreshContents(cp);
4387
+ }
43634388
43644389 void linkSomething(Object3D thing)
43654390 {