.. | .. |
---|
871 | 871 | } else if(e.getSource() == liveCB) |
---|
872 | 872 | { |
---|
873 | 873 | cameraView.ToggleLive(); |
---|
| 874 | + refreshContents(false); |
---|
874 | 875 | } |
---|
875 | 876 | else if(e.getSource() == supportCB) |
---|
876 | 877 | { |
---|
.. | .. |
---|
1278 | 1279 | memoryItem.addActionListener(this); |
---|
1279 | 1280 | menu.add(analyzeItem = new MenuItem("Analyze")); |
---|
1280 | 1281 | analyzeItem.addActionListener(this); |
---|
1281 | | - menu.add(dumpItem = new MenuItem("Dump")); |
---|
| 1282 | + menu.add(dumpItem = new MenuItem("Print")); |
---|
1282 | 1283 | dumpItem.addActionListener(this); |
---|
1283 | 1284 | // menu.add(pathItem = new MenuItem("From-to path")); |
---|
1284 | 1285 | // pathItem.addActionListener(this); |
---|
.. | .. |
---|
4320 | 4321 | //case 702: // Event.LIST_DESELECT |
---|
4321 | 4322 | group.deselectAll(); |
---|
4322 | 4323 | TreePath tps[] = objEditor.jTree.getSelectionPaths(); |
---|
4323 | | - objEditor.ClearInfo(); // .GetMaterial()); |
---|
4324 | 4324 | if (tps != null) |
---|
4325 | 4325 | { |
---|
4326 | 4326 | for (int i=0; i < tps.length; i++) |
---|
.. | .. |
---|
4330 | 4330 | //if (child.parent != null) |
---|
4331 | 4331 | //child.parent.addSelectee(child); |
---|
4332 | 4332 | group.addSelectee(child); |
---|
4333 | | - objEditor.SetMaterial(child); // .GetMaterial()); |
---|
4334 | | - objEditor.AddInfo(child, this, true); // .GetMaterial()); |
---|
4335 | | - System.err.println("info : " + child.GetPath()); |
---|
4336 | 4333 | } |
---|
4337 | 4334 | } |
---|
4338 | 4335 | // else |
---|
.. | .. |
---|
4342 | 4339 | // System.err.println("info : " + group.GetPath()); |
---|
4343 | 4340 | // } |
---|
4344 | 4341 | |
---|
4345 | | - objEditor.SetText(); // jan 2014 |
---|
4346 | | - |
---|
4347 | 4342 | if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera)) |
---|
4348 | 4343 | CameraPane.flash = true; |
---|
4349 | 4344 | |
---|
.. | .. |
---|
4367 | 4362 | |
---|
4368 | 4363 | freezemodel = false; |
---|
4369 | 4364 | } |
---|
| 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 | + } |
---|
4370 | 4388 | |
---|
4371 | 4389 | void linkSomething(Object3D thing) |
---|
4372 | 4390 | { |
---|