.. | .. |
---|
220 | 220 | // toggleSwitchItem.addItemListener(this); |
---|
221 | 221 | // toggleSwitchItem.setState(CameraPane.SWITCH); |
---|
222 | 222 | |
---|
223 | | - cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles")); |
---|
| 223 | + cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Show Handles")); |
---|
224 | 224 | toggleHandleItem.addItemListener(this); |
---|
225 | 225 | toggleHandleItem.setState(CameraPane.HANDLES); |
---|
226 | 226 | |
---|
.. | .. |
---|
380 | 380 | shadowYItem.addActionListener(this); |
---|
381 | 381 | shadowZItem = menu.add(new MenuItem("Shadow Blue")); |
---|
382 | 382 | shadowZItem.addActionListener(this); |
---|
| 383 | + |
---|
383 | 384 | if (Globals.ADVANCED) |
---|
384 | 385 | { |
---|
385 | 386 | menu.add("-"); |
---|
.. | .. |
---|
582 | 583 | */ |
---|
583 | 584 | cGridBag copyOptionsPanel = new cGridBag(); |
---|
584 | 585 | |
---|
585 | | - copyOptionsPanel.preferredHeight = 2; |
---|
| 586 | + copyOptionsPanel.preferredHeight = 1; |
---|
586 | 587 | |
---|
587 | 588 | //this.AddOptions(oe.toolbarPanel, oe.aConstraints); |
---|
588 | 589 | |
---|
.. | .. |
---|
590 | 591 | //minButton.setToolTipText("Minimize window"); |
---|
591 | 592 | //minButton.addActionListener(this); |
---|
592 | 593 | |
---|
593 | | - oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
594 | | - maxButton.setToolTipText("Maximize window"); |
---|
595 | | - maxButton.addActionListener(this); |
---|
| 594 | + if (Globals.ADVANCED) |
---|
| 595 | + { |
---|
| 596 | + oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 597 | + maxButton.setToolTipText("Maximize window"); |
---|
| 598 | + maxButton.addActionListener(this); |
---|
| 599 | + } |
---|
596 | 600 | |
---|
597 | 601 | oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
598 | 602 | fullButton.setToolTipText("Full-screen window"); |
---|
599 | 603 | fullButton.addActionListener(this); |
---|
600 | 604 | |
---|
| 605 | + oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 606 | + screenfitButton.setToolTipText("Screen fit"); |
---|
| 607 | + screenfitButton.addActionListener(this); |
---|
| 608 | + |
---|
601 | 609 | oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
602 | 610 | restoreCameraButton.setToolTipText("Restore viewpoint"); |
---|
603 | 611 | restoreCameraButton.addActionListener(this); |
---|
.. | .. |
---|
605 | 613 | copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
606 | 614 | undoButton.setToolTipText("Undo changes"); |
---|
607 | 615 | undoButton.addActionListener(this); |
---|
| 616 | + undoButton.setEnabled(false); |
---|
608 | 617 | |
---|
609 | 618 | copyOptionsPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
610 | 619 | redoButton.setToolTipText("Redo changes"); |
---|
611 | 620 | redoButton.addActionListener(this); |
---|
| 621 | + redoButton.setEnabled(false); |
---|
612 | 622 | |
---|
613 | 623 | copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
614 | 624 | saveButton.setToolTipText("Save changes"); |
---|
.. | .. |
---|
628 | 638 | |
---|
629 | 639 | //oe.toolboxPanel.Return(); |
---|
630 | 640 | |
---|
631 | | - copyOptionsPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
632 | | - screenfitButton.setToolTipText("Screen fit"); |
---|
633 | | - screenfitButton.addActionListener(this); |
---|
634 | | - |
---|
635 | 641 | // copyOptionsPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints); |
---|
636 | 642 | // trackCB.setToolTipText("Enable tracking"); |
---|
637 | 643 | // trackCB.addItemListener(this); |
---|
.. | .. |
---|
724 | 730 | compositeButton.addActionListener(this); |
---|
725 | 731 | |
---|
726 | 732 | oe.toolboxPanel.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
727 | | - switchButton.setToolTipText("Create switch"); |
---|
| 733 | + switchButton.setToolTipText("Create item switcher"); |
---|
728 | 734 | switchButton.addActionListener(this); |
---|
729 | 735 | |
---|
730 | 736 | oe.toolboxPanel.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
.. | .. |
---|
743 | 749 | lightButton.setToolTipText("Create light"); |
---|
744 | 750 | lightButton.addActionListener(this); |
---|
745 | 751 | |
---|
| 752 | + for (int i=6; --i>=0;) |
---|
| 753 | + { |
---|
| 754 | + oe.toolboxPanel.Return(); |
---|
| 755 | + oe.toolboxPanel.add(new cGridBag()); |
---|
| 756 | + oe.toolboxPanel.add(new cGridBag()); |
---|
| 757 | + oe.toolboxPanel.add(new cGridBag()); |
---|
| 758 | + oe.toolboxPanel.add(new cGridBag()); |
---|
| 759 | + oe.toolboxPanel.add(new cGridBag()); |
---|
| 760 | + oe.toolboxPanel.add(new cGridBag()); |
---|
| 761 | + oe.toolboxPanel.add(new cGridBag()); |
---|
| 762 | + } |
---|
| 763 | + |
---|
746 | 764 | // EDIT panel |
---|
747 | | - editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
748 | | - editButton.setToolTipText("Edit selection"); |
---|
| 765 | + editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 766 | + editButton.setToolTipText("Pin selection controls"); |
---|
749 | 767 | editButton.addActionListener(this); |
---|
750 | 768 | |
---|
751 | | - editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
752 | | - uneditButton.setToolTipText("Unedit selection"); |
---|
| 769 | + editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 770 | + uneditButton.setToolTipText("Remove selection controls"); |
---|
753 | 771 | uneditButton.addActionListener(this); |
---|
754 | 772 | |
---|
755 | 773 | editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); |
---|
756 | | - allParamsButton.setToolTipText("Edit all params"); |
---|
| 774 | + allParamsButton.setToolTipText("Show all controle"); |
---|
757 | 775 | allParamsButton.addActionListener(this); |
---|
758 | 776 | |
---|
759 | 777 | editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
.. | .. |
---|
770 | 788 | |
---|
771 | 789 | editCommandsPanel.preferredHeight = 1; |
---|
772 | 790 | |
---|
| 791 | + SetPinStates(false); |
---|
773 | 792 | // oe.treePanel.add(commandsPanel); |
---|
774 | 793 | // oe.treePanel.Return(); |
---|
775 | 794 | |
---|
.. | .. |
---|
843 | 862 | boxCB.addItemListener(this); |
---|
844 | 863 | |
---|
845 | 864 | panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints); |
---|
846 | | - zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel"); |
---|
| 865 | + zoomBoxCB.setToolTipText("Display only for wheel"); |
---|
847 | 866 | zoomBoxCB.addItemListener(this); |
---|
848 | 867 | |
---|
849 | 868 | if (true) // Globals.ADVANCED) |
---|
850 | 869 | { |
---|
851 | | - panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); |
---|
852 | | - supportCB.setToolTipText("Enable rigging"); |
---|
853 | | - supportCB.addItemListener(this); |
---|
| 870 | +// panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); |
---|
| 871 | +// supportCB.setToolTipText("Enable rigging"); |
---|
| 872 | +// supportCB.addItemListener(this); |
---|
| 873 | + |
---|
| 874 | + panel.add(freezeCB = new cCheckBox("Freeze", Globals.FREEZEONMOVE)); //, constraints); |
---|
| 875 | + freezeCB.setToolTipText("Fast moving camera"); |
---|
| 876 | + freezeCB.addItemListener(this); |
---|
854 | 877 | |
---|
855 | 878 | // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints); |
---|
856 | 879 | // localCB.addItemListener(this); |
---|
.. | .. |
---|
905 | 928 | oeilCB.addItemListener(this); |
---|
906 | 929 | |
---|
907 | 930 | panel.add(shadowCB = new cCheckBox("Shadow", Globals.COMPUTESHADOWWHENLIVE)); //, constraints); |
---|
908 | | - shadowCB.setToolTipText("Compute shadows when live"); |
---|
| 931 | + shadowCB.setToolTipText("When live compute shadows"); |
---|
909 | 932 | shadowCB.addItemListener(this); |
---|
910 | 933 | |
---|
911 | 934 | panel.Return(); |
---|
.. | .. |
---|
914 | 937 | toggleTextureCB.addItemListener(this); |
---|
915 | 938 | |
---|
916 | 939 | panel.add(toggleSwitchCB = new cCheckBox("Switch", CameraPane.SWITCH)); //, constraints); |
---|
917 | | - toggleSwitchCB.setToolTipText("Use switch"); |
---|
| 940 | + toggleSwitchCB.setToolTipText("Choose a single item"); |
---|
918 | 941 | toggleSwitchCB.addItemListener(this); |
---|
919 | 942 | |
---|
920 | 943 | panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints); |
---|
921 | | - autosaveCB.setToolTipText("Auto-save on structure change"); |
---|
| 944 | + autosaveCB.setToolTipText("On structure change"); |
---|
922 | 945 | autosaveCB.addItemListener(this); |
---|
923 | 946 | |
---|
924 | 947 | panel.Return(); |
---|
.. | .. |
---|
985 | 1008 | cCheckBox slowCB; |
---|
986 | 1009 | cCheckBox boxCB; |
---|
987 | 1010 | cCheckBox zoomBoxCB; |
---|
| 1011 | + cCheckBox freezeCB; |
---|
988 | 1012 | //cToggleButton trackCB; |
---|
989 | 1013 | cCheckBox trackCB; |
---|
990 | 1014 | cCheckBox smoothfocusCB; |
---|
.. | .. |
---|
1103 | 1127 | { |
---|
1104 | 1128 | Globals.COMPUTESHADOWWHENLIVE ^= true; |
---|
1105 | 1129 | } |
---|
| 1130 | + else if(e.getSource() == freezeCB) |
---|
| 1131 | + { |
---|
| 1132 | + Globals.FREEZEONMOVE ^= true; |
---|
| 1133 | + } |
---|
1106 | 1134 | else if(e.getSource() == autosaveCB) |
---|
1107 | 1135 | { |
---|
1108 | 1136 | Globals.SAVEONMAKE ^= true; |
---|
.. | .. |
---|
1187 | 1215 | } |
---|
1188 | 1216 | } |
---|
1189 | 1217 | |
---|
1190 | | - String string = (String) object; |
---|
1191 | | - |
---|
1192 | 1218 | System.out.println("Transfer = " + object + "; drop : " + target); |
---|
1193 | 1219 | // if( object instanceof java.io.File[]) |
---|
1194 | 1220 | // { |
---|
.. | .. |
---|
1196 | 1222 | // objEditor.DropFile((java.io.File[]) object, true); |
---|
1197 | 1223 | // return; |
---|
1198 | 1224 | // } |
---|
| 1225 | + |
---|
| 1226 | + String string = (String) object; |
---|
1199 | 1227 | |
---|
1200 | 1228 | // File path for Mac and Windows |
---|
1201 | 1229 | if (string.charAt(0) == '/' || string.charAt(1) == ':') |
---|
.. | .. |
---|
1445 | 1473 | animationItem.addItemListener(this); |
---|
1446 | 1474 | animationItem.setState(Globals.ANIMATION); |
---|
1447 | 1475 | |
---|
| 1476 | + menu.add(archiveItem = new MenuItem("Archive3D...")); |
---|
| 1477 | + archiveItem.addActionListener(this); |
---|
| 1478 | + |
---|
1448 | 1479 | menu.add("-"); |
---|
1449 | 1480 | parseverticesItem = menu.add(new MenuItem("Multiplicity")); |
---|
1450 | 1481 | parseverticesItem.addActionListener(this); |
---|
.. | .. |
---|
1614 | 1645 | |
---|
1615 | 1646 | makeSomething(shadow); |
---|
1616 | 1647 | } |
---|
| 1648 | + |
---|
| 1649 | + private void ClearUnpinned() |
---|
| 1650 | + { |
---|
| 1651 | + //for (Object3D obj : listUI) |
---|
| 1652 | + for (int i=listUI.size(); --i>=0;) |
---|
| 1653 | + { |
---|
| 1654 | + Object3D obj = listUI.elementAt(i); |
---|
| 1655 | + if (!obj.pinned) |
---|
| 1656 | + { |
---|
| 1657 | + obj.CloseUI(); |
---|
| 1658 | + listUI.remove(i); |
---|
| 1659 | + } |
---|
| 1660 | + } |
---|
| 1661 | + } |
---|
1617 | 1662 | |
---|
1618 | 1663 | /** |
---|
1619 | 1664 | * applyExample |
---|
.. | .. |
---|
2093 | 2138 | Composite csg = new GroupLeaf(); |
---|
2094 | 2139 | csg.count = 5; |
---|
2095 | 2140 | group(csg); |
---|
2096 | | - Composite child = new cGroup(); |
---|
| 2141 | + Composite child = new cGroup("Branch"); |
---|
2097 | 2142 | csg.addChild(child); |
---|
2098 | 2143 | child.addChild(csg); |
---|
2099 | 2144 | } else |
---|
2100 | 2145 | if (source == doubleItem) |
---|
2101 | 2146 | { |
---|
2102 | | - Composite csg = new GroupLeaf(); |
---|
| 2147 | + Composite csg = new GroupLeaf("Fork"); |
---|
2103 | 2148 | csg.count = 5; |
---|
2104 | 2149 | group(csg); |
---|
2105 | | - Composite child = new cGroup(); |
---|
| 2150 | + Composite child = new cGroup("Branch A"); |
---|
2106 | 2151 | csg.addChild(child); |
---|
2107 | 2152 | child.addChild(csg); |
---|
2108 | | - child = new cGroup(); |
---|
| 2153 | + child = new cGroup("Branch B"); |
---|
2109 | 2154 | csg.addChild(child); |
---|
2110 | 2155 | child.addChild(csg); |
---|
2111 | 2156 | } else |
---|
2112 | 2157 | if (source == tripleItem) |
---|
2113 | 2158 | { |
---|
2114 | | - Composite csg = new GroupLeaf(); |
---|
| 2159 | + Composite csg = new GroupLeaf("Trident"); |
---|
2115 | 2160 | csg.count = 4; |
---|
2116 | 2161 | group(csg); |
---|
2117 | 2162 | Composite child = new cGroup(); |
---|
.. | .. |
---|
2175 | 2220 | } else |
---|
2176 | 2221 | if (source == undoButton) |
---|
2177 | 2222 | { |
---|
2178 | | - Undo(); |
---|
| 2223 | + if (!Undo()) |
---|
| 2224 | + java.awt.Toolkit.getDefaultToolkit().beep(); |
---|
2179 | 2225 | } else |
---|
2180 | 2226 | if (source == redoButton) |
---|
2181 | 2227 | { |
---|
.. | .. |
---|
2183 | 2229 | } else |
---|
2184 | 2230 | if (source == saveButton) |
---|
2185 | 2231 | { |
---|
2186 | | - Save(); |
---|
| 2232 | + if (!Save(true)) |
---|
| 2233 | + java.awt.Toolkit.getDefaultToolkit().beep(); |
---|
2187 | 2234 | } else |
---|
2188 | 2235 | if (source == oneStepButton) |
---|
2189 | 2236 | { |
---|
.. | .. |
---|
2192 | 2239 | } else |
---|
2193 | 2240 | if (source == screenfitButton) |
---|
2194 | 2241 | { |
---|
2195 | | - //Reload(lastConverter, lastFilename, true); |
---|
2196 | 2242 | ScreenFit(); |
---|
2197 | 2243 | } else |
---|
2198 | 2244 | if (source == screenfitpointButton) |
---|
2199 | 2245 | { |
---|
2200 | | - //Reload(lastConverter, lastFilename, true); |
---|
2201 | 2246 | ScreenFitPoint(); |
---|
2202 | 2247 | } else |
---|
2203 | 2248 | if (source == snapobjectButton) |
---|
2204 | 2249 | { |
---|
2205 | | - //Reload(lastConverter, lastFilename, true); |
---|
2206 | 2250 | SnapObject(); |
---|
2207 | 2251 | } else |
---|
2208 | 2252 | // if (event.getSource() == recompileButton) |
---|
.. | .. |
---|
2726 | 2770 | } else |
---|
2727 | 2771 | if (source == ungroupItem || source == ungroupButton) |
---|
2728 | 2772 | { |
---|
2729 | | - //ungroup(); |
---|
| 2773 | + boolean hasRoot = false; |
---|
| 2774 | + |
---|
2730 | 2775 | for (int i=0; i<group.selection.size(); i++) |
---|
2731 | 2776 | { |
---|
2732 | | - Ungroup(group.selection.get(i)); |
---|
| 2777 | + if (group.selection.get(i) == group) |
---|
| 2778 | + { |
---|
| 2779 | + hasRoot = true; |
---|
| 2780 | + break; |
---|
| 2781 | + } |
---|
2733 | 2782 | } |
---|
2734 | 2783 | |
---|
2735 | | - ClearSelection(false); |
---|
2736 | | - |
---|
2737 | | - refreshContents(); |
---|
| 2784 | + if (!hasRoot) |
---|
| 2785 | + { |
---|
| 2786 | + for (int i=0; i<group.selection.size(); i++) |
---|
| 2787 | + { |
---|
| 2788 | + Ungroup(group.selection.get(i)); |
---|
| 2789 | + } |
---|
| 2790 | + |
---|
| 2791 | + ClearSelection(false); |
---|
| 2792 | + |
---|
| 2793 | + refreshContents(); |
---|
| 2794 | + } |
---|
2738 | 2795 | } else |
---|
2739 | 2796 | if (source == genUVItem) |
---|
2740 | 2797 | { |
---|
.. | .. |
---|
3326 | 3383 | } else |
---|
3327 | 3384 | if (source == editItem || source == editButton) |
---|
3328 | 3385 | { |
---|
| 3386 | + for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
| 3387 | + { |
---|
| 3388 | + Object3D child = (Object3D)e.nextElement(); |
---|
| 3389 | + child.pinned = true; |
---|
| 3390 | + } |
---|
| 3391 | + |
---|
3329 | 3392 | EditSelection(false); |
---|
3330 | 3393 | } else |
---|
3331 | 3394 | if (source == uneditButton) |
---|
.. | .. |
---|
3335 | 3398 | Object3D child = (Object3D)e.nextElement(); |
---|
3336 | 3399 | if(child.editWindow != null) |
---|
3337 | 3400 | objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit")); |
---|
| 3401 | + child.pinned = false; |
---|
3338 | 3402 | child.CloseUI(); |
---|
3339 | 3403 | listUI.remove(child); |
---|
3340 | 3404 | |
---|
.. | .. |
---|
3351 | 3415 | //copy.ClearUI(); |
---|
3352 | 3416 | for (Object3D obj : listUI) |
---|
3353 | 3417 | { |
---|
| 3418 | + obj.pinned = false; |
---|
3354 | 3419 | obj.CloseUI(); |
---|
3355 | 3420 | } |
---|
3356 | 3421 | listUI.clear(); |
---|
.. | .. |
---|
3360 | 3425 | { |
---|
3361 | 3426 | assert(copy == group); |
---|
3362 | 3427 | |
---|
3363 | | - objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit")); |
---|
| 3428 | + //objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit")); |
---|
3364 | 3429 | |
---|
3365 | 3430 | for (Object3D obj : listUI) |
---|
3366 | 3431 | { |
---|
.. | .. |
---|
3435 | 3500 | currentLayout = sevenButton; |
---|
3436 | 3501 | */ |
---|
3437 | 3502 | radio.layout.doClick(); |
---|
| 3503 | + |
---|
| 3504 | + ClearUnpinned(); |
---|
| 3505 | + SetPinStates(group.selection.size() > 0); |
---|
| 3506 | + if (group.selection.size() == 1) |
---|
| 3507 | + EditSelection(false); |
---|
3438 | 3508 | keepparent = group.parent; |
---|
3439 | 3509 | // PARENT = NULL or not??? |
---|
3440 | 3510 | //group.parent = null; // ROOT |
---|
.. | .. |
---|
4502 | 4572 | // } |
---|
4503 | 4573 | // } |
---|
4504 | 4574 | |
---|
4505 | | - static boolean allparams = true; |
---|
4506 | | - |
---|
4507 | | - static Vector<Object3D> listUI = new Vector<Object3D>(); |
---|
4508 | | - |
---|
4509 | 4575 | void EditSelection(boolean newWindow) |
---|
4510 | 4576 | { |
---|
4511 | 4577 | // aConstraints.gridy = 0; |
---|
.. | .. |
---|
4598 | 4664 | //new Exception().printStackTrace(); |
---|
4599 | 4665 | |
---|
4600 | 4666 | freezemodel = true; |
---|
4601 | | - |
---|
| 4667 | + ClearUnpinned(); |
---|
| 4668 | + |
---|
4602 | 4669 | /**/ |
---|
4603 | 4670 | //switch (event.id) |
---|
4604 | 4671 | { |
---|
.. | .. |
---|
4631 | 4698 | if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera) |
---|
4632 | 4699 | // a camera |
---|
4633 | 4700 | { |
---|
4634 | | - if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) |
---|
| 4701 | + if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crash the camera because of invalid lightspace |
---|
4635 | 4702 | { |
---|
4636 | 4703 | CameraPane.camerachangeframe = 0; // don't refuse it |
---|
4637 | 4704 | Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
.. | .. |
---|
4640 | 4707 | // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera; |
---|
4641 | 4708 | } |
---|
4642 | 4709 | |
---|
| 4710 | + if (tps != null && tps.length == 1) |
---|
| 4711 | + { |
---|
| 4712 | + EditSelection(false); |
---|
| 4713 | + } |
---|
| 4714 | + |
---|
| 4715 | + SetPinStates(tps != null && tps.length > 0); |
---|
| 4716 | + |
---|
4643 | 4717 | refreshContents(); |
---|
4644 | 4718 | //return true; |
---|
4645 | 4719 | } |
---|
.. | .. |
---|
4649 | 4723 | freezemodel = false; |
---|
4650 | 4724 | } |
---|
4651 | 4725 | |
---|
| 4726 | + void SetPinStates(boolean enabled) |
---|
| 4727 | + { |
---|
| 4728 | + editButton.setEnabled(enabled); |
---|
| 4729 | + uneditButton.setEnabled(enabled); |
---|
| 4730 | + unselectButton.setEnabled(enabled); |
---|
| 4731 | + flashSelectionButton.setEnabled(enabled); |
---|
| 4732 | + } |
---|
| 4733 | + |
---|
4652 | 4734 | void refreshContents(boolean cp) |
---|
4653 | 4735 | { |
---|
4654 | 4736 | if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Info")) |
---|
4655 | | - if (!Globals.MOUSEDRAGGED) // && !Globals.TIMERRUNNING) |
---|
| 4737 | + if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING) |
---|
4656 | 4738 | { |
---|
4657 | 4739 | objEditor.ClearInfo(); // .GetMaterial()); |
---|
4658 | 4740 | |
---|
.. | .. |
---|
5472 | 5554 | |
---|
5473 | 5555 | cButton restoreCameraButton; |
---|
5474 | 5556 | |
---|
5475 | | - cButton minButton; |
---|
5476 | | - cButton maxButton; |
---|
5477 | | - cButton fullButton; |
---|
5478 | | - cButton undoButton; |
---|
5479 | | - cButton redoButton; |
---|
5480 | 5557 | cButton saveButton; |
---|
5481 | 5558 | cButton oneStepButton; |
---|
5482 | 5559 | |
---|