Normand Briere
2019-06-17 13e9febe94aaeebad9c97f6d3e2aa4d73b2495c8
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);
....@@ -4320,7 +4321,6 @@
43204321 //case 702: // Event.LIST_DESELECT
43214322 group.deselectAll();
43224323 TreePath tps[] = objEditor.jTree.getSelectionPaths();
4323
- objEditor.ClearInfo(); // .GetMaterial());
43244324 if (tps != null)
43254325 {
43264326 for (int i=0; i < tps.length; i++)
....@@ -4329,10 +4329,8 @@
43294329
43304330 //if (child.parent != null)
43314331 //child.parent.addSelectee(child);
4332
+ objEditor.SetMaterial(child);
43324333 group.addSelectee(child);
4333
- objEditor.SetMaterial(child); // .GetMaterial());
4334
- objEditor.AddInfo(child, this, true); // .GetMaterial());
4335
- System.err.println("info : " + child.GetPath());
43364334 }
43374335 }
43384336 // else
....@@ -4342,8 +4340,6 @@
43424340 // System.err.println("info : " + group.GetPath());
43434341 // }
43444342
4345
- objEditor.SetText(); // jan 2014
4346
-
43474343 if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
43484344 CameraPane.flash = true;
43494345
....@@ -4367,6 +4363,26 @@
43674363
43684364 freezemodel = false;
43694365 }
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
+ }
43704386
43714387 void linkSomething(Object3D thing)
43724388 {