.. | .. |
---|
803 | 803 | genNormalsCADItem.addActionListener(this); |
---|
804 | 804 | genNormalsMESHItem = menu.add(new MenuItem("Mesh Normals")); |
---|
805 | 805 | genNormalsMESHItem.addActionListener(this); |
---|
806 | | - if (Globals.ADVANCED) |
---|
| 806 | + //if (Globals.ADVANCED) |
---|
807 | 807 | { |
---|
808 | 808 | genNormalsMINEItem = menu.add(new MenuItem("Stitch Normals")); |
---|
809 | 809 | genNormalsMINEItem.addActionListener(this); |
---|
.. | .. |
---|
966 | 966 | currenttab.setName(tabname); |
---|
967 | 967 | //added = false; |
---|
968 | 968 | resourcecontainer.add(currenttab); |
---|
969 | | - resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname); |
---|
| 969 | + resourcecontainer.setToolTipTextAt(tabcount++, "Texture " + tabname); |
---|
970 | 970 | rowcount = 1; |
---|
971 | 971 | colcount = 0; |
---|
972 | 972 | texturecount = 0; |
---|
.. | .. |
---|
981 | 981 | currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname)); |
---|
982 | 982 | } |
---|
983 | 983 | |
---|
| 984 | + columns = 5; |
---|
| 985 | + |
---|
| 986 | + if (path[0].contains("D&R") || path[0].contains("Paint")) |
---|
| 987 | + columns = 4; |
---|
| 988 | + |
---|
984 | 989 | AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab); |
---|
985 | 990 | totalcount++; |
---|
986 | 991 | |
---|
.. | .. |
---|
1195 | 1200 | //clearButton.addActionListener(this); |
---|
1196 | 1201 | |
---|
1197 | 1202 | cGridBag row1 = new cGridBag(); |
---|
| 1203 | + row1.preferredHeight = 8; |
---|
1198 | 1204 | |
---|
1199 | 1205 | // INSERT |
---|
1200 | 1206 | row1.add(gridButton = GetButton("icons/grid.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); |
---|
.. | .. |
---|
1235 | 1241 | oe.toolboxPanel.add(row1); |
---|
1236 | 1242 | |
---|
1237 | 1243 | cGridBag row2 = new cGridBag(); |
---|
| 1244 | + row2.preferredHeight = 8; |
---|
1238 | 1245 | |
---|
1239 | 1246 | row2.add(groupButton = GetButton("icons/group.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); |
---|
1240 | 1247 | groupButton.setToolTipText("Create group"); |
---|
.. | .. |
---|
1397 | 1404 | // supportCB.setToolTipText("Enable rigging"); |
---|
1398 | 1405 | // supportCB.addItemListener(this); |
---|
1399 | 1406 | |
---|
1400 | | - panel.add(freezeCB = new cCheckBox("Freeze", Globals.FREEZEONMOVE)); //, constraints); |
---|
| 1407 | + panel.add(freezeCB = new cCheckBox("Fast cam", Globals.FREEZEONMOVE)); //, constraints); |
---|
1401 | 1408 | freezeCB.setToolTipText("Fast moving camera"); |
---|
1402 | 1409 | freezeCB.addItemListener(this); |
---|
1403 | 1410 | |
---|
.. | .. |
---|
1406 | 1413 | |
---|
1407 | 1414 | panel.Return(); |
---|
1408 | 1415 | |
---|
| 1416 | + if (Globals.ADVANCED) |
---|
| 1417 | + { |
---|
1409 | 1418 | panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints); |
---|
1410 | 1419 | crowdCB.setToolTipText("Used for crowds"); |
---|
1411 | 1420 | crowdCB.addItemListener(this); |
---|
| 1421 | + } |
---|
1412 | 1422 | |
---|
1413 | 1423 | panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints); |
---|
1414 | 1424 | smoothCB.setToolTipText("Snapping delay"); |
---|
.. | .. |
---|
1421 | 1431 | minshaderCB.setToolTipText("Minimal fast shader"); |
---|
1422 | 1432 | minshaderCB.addItemListener(this); |
---|
1423 | 1433 | |
---|
1424 | | -// constraints.gridy += 1; |
---|
1425 | 1434 | // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints); |
---|
1426 | 1435 | // speakerMocapCB.addItemListener(this); |
---|
1427 | 1436 | |
---|
1428 | | - panel.Return(); |
---|
1429 | | - |
---|
1430 | 1437 | if (false) |
---|
1431 | 1438 | { |
---|
1432 | 1439 | // handled in scripts |
---|
1433 | | - //constraints.gridy += 1; |
---|
1434 | 1440 | panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints); |
---|
1435 | 1441 | speakerCameraCB.addItemListener(this); |
---|
1436 | 1442 | |
---|
1437 | | - //constraints.gridy += 1; |
---|
1438 | 1443 | panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints); |
---|
1439 | 1444 | speakerFocusCB.addItemListener(this); |
---|
1440 | 1445 | |
---|
1441 | | - //constraints.gridy += 1; |
---|
1442 | | - panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints); |
---|
1443 | | - smoothfocusCB.addItemListener(this); |
---|
1444 | 1446 | panel.Return(); |
---|
1445 | 1447 | } |
---|
1446 | 1448 | |
---|
1447 | | -//constraints.gridx += 1; |
---|
| 1449 | + panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints); |
---|
| 1450 | + smoothfocusCB.addItemListener(this); |
---|
| 1451 | + |
---|
| 1452 | + panel.Return(); |
---|
| 1453 | + |
---|
1448 | 1454 | //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints); |
---|
1449 | 1455 | // debugCB.addItemListener(this); |
---|
1450 | 1456 | |
---|
.. | .. |
---|
2083 | 2089 | Object3D obj = (Object3D)group.selection.elementAt(0); |
---|
2084 | 2090 | objEditor.ScreenFit(obj, false); |
---|
2085 | 2091 | |
---|
2086 | | - cameraView.pingthread.StepToTarget(true); |
---|
| 2092 | + cameraView.pingthread.StepToTarget(); //true); |
---|
2087 | 2093 | refreshContents(); |
---|
2088 | 2094 | } |
---|
2089 | 2095 | |
---|
.. | .. |
---|
2120 | 2126 | obj.parent.TransformToWorld(maxima); //, maxima); |
---|
2121 | 2127 | } |
---|
2122 | 2128 | |
---|
2123 | | - Object3D shadow = new Object3D("Shadow " + obj.name); |
---|
| 2129 | + Object3D shadow = new Object3D("Shadow" + obj.name); |
---|
2124 | 2130 | |
---|
2125 | 2131 | shadow.toParent = LA.newMatrix(); |
---|
2126 | 2132 | shadow.fromParent = LA.newMatrix(); |
---|
.. | .. |
---|
4867 | 4873 | LA.matTranslateInv(obj.fromParent, -i * scale, 0, 0); |
---|
4868 | 4874 | } |
---|
4869 | 4875 | |
---|
| 4876 | + Globals.lighttouched = true; |
---|
4870 | 4877 | refreshContents(); |
---|
4871 | 4878 | } |
---|
4872 | 4879 | |
---|
.. | .. |
---|
5401 | 5408 | if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crashes the camera because of invalid lightspace |
---|
5402 | 5409 | { |
---|
5403 | 5410 | CameraPane.camerachangeframe = 0; // don't refuse it |
---|
5404 | | - Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 5411 | + Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent(), true); |
---|
5405 | 5412 | } |
---|
5406 | 5413 | // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera; |
---|
5407 | 5414 | // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera; |
---|