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);
....@@ -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++)
....@@ -4330,9 +4330,6 @@
43304330 //if (child.parent != null)
43314331 //child.parent.addSelectee(child);
43324332 group.addSelectee(child);
4333
- objEditor.SetMaterial(child); // .GetMaterial());
4334
- objEditor.AddInfo(child, this, true); // .GetMaterial());
4335
- System.err.println("info : " + child.GetPath());
43364333 }
43374334 }
43384335 // else
....@@ -4342,8 +4339,6 @@
43424339 // System.err.println("info : " + group.GetPath());
43434340 // }
43444341
4345
- objEditor.SetText(); // jan 2014
4346
-
43474342 if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera))
43484343 CameraPane.flash = true;
43494344
....@@ -4367,6 +4362,29 @@
43674362
43684363 freezemodel = false;
43694364 }
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
+ }
43704388
43714389 void linkSomething(Object3D thing)
43724390 {