.. | .. |
---|
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); |
---|
.. | .. |
---|
2542 | 2543 | } else |
---|
2543 | 2544 | if (source == genNormalsMESHItem) |
---|
2544 | 2545 | { |
---|
2545 | | - GenNormals(true); // TODO |
---|
| 2546 | + GenNormalsMESH(); |
---|
2546 | 2547 | } else |
---|
2547 | 2548 | if (source == genNormalsORGANItem) |
---|
2548 | 2549 | { |
---|
.. | .. |
---|
3429 | 3430 | |
---|
3430 | 3431 | int size = obj.MemorySize(); |
---|
3431 | 3432 | |
---|
3432 | | - System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3433 | + //System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3434 | + System.err.println("the size of " + obj + " is " + size + " (" + (size/1024) + "KB)"); |
---|
3433 | 3435 | } |
---|
3434 | 3436 | } |
---|
3435 | 3437 | catch (Exception e) |
---|
.. | .. |
---|
3510 | 3512 | void GenNormals(boolean crease) |
---|
3511 | 3513 | { |
---|
3512 | 3514 | group.GenNormalsS(crease); |
---|
| 3515 | + |
---|
| 3516 | + refreshContents(); |
---|
| 3517 | + } |
---|
| 3518 | + |
---|
| 3519 | + void GenNormalsMESH() |
---|
| 3520 | + { |
---|
| 3521 | + group.GenNormalsMeshS(); |
---|
3513 | 3522 | |
---|
3514 | 3523 | refreshContents(); |
---|
3515 | 3524 | } |
---|
.. | .. |
---|
4312 | 4321 | //case 702: // Event.LIST_DESELECT |
---|
4313 | 4322 | group.deselectAll(); |
---|
4314 | 4323 | TreePath tps[] = objEditor.jTree.getSelectionPaths(); |
---|
4315 | | - objEditor.ClearInfo(); // .GetMaterial()); |
---|
4316 | 4324 | if (tps != null) |
---|
4317 | 4325 | { |
---|
4318 | 4326 | for (int i=0; i < tps.length; i++) |
---|
.. | .. |
---|
4322 | 4330 | //if (child.parent != null) |
---|
4323 | 4331 | //child.parent.addSelectee(child); |
---|
4324 | 4332 | group.addSelectee(child); |
---|
4325 | | - objEditor.SetMaterial(child); // .GetMaterial()); |
---|
4326 | | - objEditor.AddInfo(child, this, true); // .GetMaterial()); |
---|
4327 | | - System.err.println("info : " + child.GetPath()); |
---|
4328 | 4333 | } |
---|
4329 | 4334 | } |
---|
4330 | 4335 | // else |
---|
.. | .. |
---|
4334 | 4339 | // System.err.println("info : " + group.GetPath()); |
---|
4335 | 4340 | // } |
---|
4336 | 4341 | |
---|
4337 | | - objEditor.SetText(); // jan 2014 |
---|
4338 | | - |
---|
4339 | 4342 | if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera)) |
---|
4340 | 4343 | CameraPane.flash = true; |
---|
4341 | 4344 | |
---|
.. | .. |
---|
4359 | 4362 | |
---|
4360 | 4363 | freezemodel = false; |
---|
4361 | 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 | + } |
---|
4362 | 4388 | |
---|
4363 | 4389 | void linkSomething(Object3D thing) |
---|
4364 | 4390 | { |
---|